Skip to content

Commit

Permalink
docs(customization): add documentation regarding paginate_by
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Sep 26, 2024
1 parent 1cc3792 commit 5c4da6f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/source/customization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ useful `django table columns
<https://django-tables2.readthedocs.io/en/latest/pages/api-reference.html#columns>`_
that you might want to use.

Your table can also contain a ``paginate_by`` attribute, which is then used
by the list view to determines the number of items per page, or ``None`` for no
pagination (which is the default).

The base queryset that is used in the listview, which is then filtered using
the django-filters filter, is ``model.objects.all()`` - but you can override
the queryset by creating a custom queryset for your model in
Expand Down

0 comments on commit 5c4da6f

Please sign in to comment.