Permalink
Browse files

noted block scope for autopaginate tag

  • Loading branch information...
ptone committed Nov 8, 2011
1 parent 3c4a7f3 commit 8cfc49b7baff62dbb4de1b2fa6d22d45c97aef40
Showing with 4 additions and 0 deletions.
  1. +4 −0 doc/usage.rst
View
@@ -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]

0 comments on commit 8cfc49b

Please sign in to comment.