fnp
/
django-pagination.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
3c4a7f3
)
noted block scope for autopaginate tag
author
ptone
<preston@ptone.com>
Tue, 8 Nov 2011 16:56:23 +0000
(08:56 -0800)
committer
ptone
<preston@ptone.com>
Tue, 8 Nov 2011 16:56:23 +0000
(08:56 -0800)
doc/usage.rst
patch
|
blob
|
history
diff --git
a/doc/usage.rst
b/doc/usage.rst
index
3c66a78
..
a57cf46
100644
(file)
--- 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.
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]
In general the full syntax is::
autopaginate QUERYSET [PAGINATE_BY] [ORPHANS] [as NAME]