django-pure-pagination icon indicating copy to clipboard operation
django-pure-pagination copied to clipboard

、 'Page' object is not iterable

Open lijinzhou2016 opened this issue 6 years ago • 4 comments

Exception Type: | TypeError

'Page' object is not iterable

lijinzhou2016 avatar Mar 24 '18 14:03 lijinzhou2016

I met this issue too

williamlifaith avatar Apr 18 '18 02:04 williamlifaith

Hi have you solved this issue?

williamlifaith avatar Apr 18 '18 02:04 williamlifaith

in the template you must miss .object_list

{% for person in people.object_list %}

sonpython avatar May 17 '18 12:05 sonpython

I got this error too. it's strange that it's not always present, on one page there is error , but on another page it is ok. Even I do not use page in html file, it will report error when django render the html page. I use django 1.11.13

TypeError: 'Page' object is not iterable E:\venv\imooc\Lib\site-packages\django\template\defaulttags.py

        if not hasattr(values, '__len__'):
            values = list(values)
        len_values = len(values)

ghjan avatar May 25 '18 10:05 ghjan