Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pagination templatetags within blocks #17

Open
bmihelac opened this issue Mar 27, 2011 · 0 comments
Open

Pagination templatetags within blocks #17

bmihelac opened this issue Mar 27, 2011 · 0 comments

Comments

@bmihelac
Copy link

Would be worth noting that in updated object list is not preserved in different blocks:

{% extends "base.html" %}
{% load pagination_tags %}

{% block body %}
  {% autopaginate object_list %}
  {% for object in object_list %}
    {{ object }}
  {% endfor %}
{% endblock %}

{% block sidebar %}
  {# this would not work without calling autopaginate again #}
  {% autopaginate object_list %}
  {% paginate %}
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant