Re: Django Template and compating with select option value

2017-10-29 Thread Andréas Kühne
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

Django Template and compating with select option value

2017-10-28 Thread Naaim Iss
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 %}