Hi,
I am not really sure what you are trying to accomplish. What you are
writing doesn't make sense.
I think you should check how to write the paginate by properties. You can
find some information here:
https://docs.djangoproject.com/en/1.11/topics/pagination/
https://simpleisbetterthancomplex.co
Hello everyone.
I hace a ListView-based class with attribute `paginate_by = 12`.
There is in HTML-template a select element with seveeral options, for
pagination of course. Options come to the page from context. Loks like this:
`
{% for item in per_page_options %}
{{ item }}
{% endfor %}
2 matches
Mail list logo