You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 5, 2018. It is now read-only.
Hope I get this described right, but we have a situation where we need two different
{% autopaginate foo %} tags. They're in different blocks (of template) so Django can't
pass the result from one block to another and that's why we do it like we do.
The first time around everything's nice, num_pages is eg. 8. The second time it's 1.
Iterating over paginator.object_list (edit: page_obj.object_list of course) doesn't seem
broken, but it's as if all the numeric states get reset.
The second autopaginate is inside a script tag, so I tried /* {% paginate %} */ with
no effect.
There is a paginator object in the context at that time, so is there some magic
that destroys its state or whatever?
The text was updated successfully, but these errors were encountered:
Hope I get this described right, but we have a situation where we need two different
{% autopaginate foo %} tags. They're in different blocks (of template) so Django can't
pass the result from one block to another and that's why we do it like we do.
The first time around everything's nice, num_pages is eg. 8. The second time it's 1.
Iterating over paginator.object_list (edit: page_obj.object_list of course) doesn't seem
broken, but it's as if all the numeric states get reset.
The second autopaginate is inside a script tag, so I tried /* {% paginate %} */ with
no effect.
There is a paginator object in the context at that time, so is there some magic
that destroys its state or whatever?
The text was updated successfully, but these errors were encountered: