From: Zygmunt Krynicki Date: Tue, 8 Nov 2011 19:30:58 +0000 (-0800) Subject: Merge pull request #8 from ptone/master X-Git-Tag: release-2.1~13 X-Git-Url: https://git.mdrn.pl/django-pagination.git/commitdiff_plain/4c5f9d5b9dcc78e10373b89b200ba17ae0ae2f9f?hp=3c4a7f31f35bb1bcdac755849b0212494a83c56b Merge pull request #8 from ptone/master note block scope for autopaginate tag --- diff --git a/doc/usage.rst b/doc/usage.rst index 3c66a78..a57cf46 100644 --- a/doc/usage.rst +++ b/doc/usage.rst @@ -61,6 +61,10 @@ installation, which is covered in :ref:`installation`.) Note that this replaces ``object_list`` with the list for the current page, so you can iterate over the ``object_list`` like you normally would. + If you are using template ``{% block %}`` tags, the autopaginate tag must + exist in the same ``{% block %}`` where you access the paginated + ``object_list``. + In general the full syntax is:: autopaginate QUERYSET [PAGINATE_BY] [ORPHANS] [as NAME]