Issue #72 closed
Mehdi Pourfar
created an issue

is there any way to use django default paginator with your app?

Comments (3)

  1. Patrick Samson repo owner
    • changed status to open

    The use of the Django paginator classes is basically located in views. To stay a reusable generic app, django-postman code doesn't include a pagination feature but relies on external apps. django-pagination is a known candidate for that, with the benefit of isolation: the stuff is managed at middleware and template levels, so incurs no interference with the paginated app.

    If you don't want to use another app, you may wrap django-postman views in your owns and overload the Context to add the pagination plumbing. But be conscious that you may finally write something already available as an external reusable app.

    Or do have you other ideas?

  2. Log in to comment