SanomaCZ / ella-hope

Brand new admin for Ella 3+
Other
3 stars 0 forks source link

listings miss ability to be paginated #25

Open yedpodtrzitko opened 11 years ago

yedpodtrzitko commented 11 years ago

listings have to be paginated, otherwise they will be unusable w/ large data amounts

yedpodtrzitko commented 11 years ago

There are useful metadata in each tastypie's resource response by default that can be utilized to crate paginator. However, ella-hub strip these data.

mrpohoda commented 11 years ago

Is it possible to not strip these data? @miso-belica

miso-belica commented 11 years ago

I assume that @yedpodtrzitko is talking about these data:

"meta": {
  "limit": 20,
  "next": null,
  "offset": 0,
  "previous": null,
  "total_count": 3
},

It is "simple" removal of these lines https://github.com/SanomaCZ/ella-hub/blob/master/ella_hub/resources.py#L152-L153 But the lines are there because you wanted to strip the data. So it is up to you @mrpohoda. It is possible, but you get changed structure of JSON response.

mrpohoda commented 11 years ago

Put the metadata back, please :-)