Open yedpodtrzitko opened 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.
Is it possible to not strip these data? @miso-belica
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.
Put the metadata back, please :-)
listings have to be paginated, otherwise they will be unusable w/ large data amounts