buckyroberts / Vataxia

Open source social network built with Django and Django REST framework
http://vataxia.net/
443 stars 129 forks source link

Custom pagination #24

Open buckyroberts opened 7 years ago

buckyroberts commented 7 years ago

Create custom pagination model to limit results set. Queries who's results must be limited will be given page number. If none is given, it will be page 1 by default.

https://docs.djangoproject.com/en/1.11/topics/pagination/

Note: just add page to serializer method field and send back whatever page query param they passed in