We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Got an error when using python 3.10: I had to do the following change in order to have it back working in my project:
python3.10/site-packages/pure_pagination/paginator.py: replace the first line "import collections" into:
import collections
try: # Python 3.10 from collections.abc import Iterable except ImportError: from collections import Iterable
AND line 109 " elif isinstance(result, collections.Iterable):" into elif isinstance(result, Iterable):
elif isinstance(result, collections.Iterable):
elif isinstance(result, Iterable):
The text was updated successfully, but these errors were encountered:
I have some question. I can’t find : elif isinstance(result, Iterable):
please show your python3.10/site-packages/pure_pagination/paginator.py ?
python3.10/site-packages/pure_pagination/paginator.py
thanks
Sorry, something went wrong.
hi,I have a similar problem
python 3.10 Django 4.0.5
Error during template rendering In template ~\templates\pure_pagination\pagination.html, error at line 11
Invalid block tag on line 11: 'ifequal', expected 'elif','else' or 'endif'. Did you forget to register or load this tag?
10 {% if page %} 11 {% ifequal page page_obj.number %} 12
I have some question. I can’t find : elif isinstance(result, Iterable): please show your python3.10/site-packages/pure_pagination/paginator.py ? thanks
Obviously you cant find it in the code as it needs to be changed into it. Read carefully ;-)
No branches or pull requests
Got an error when using python 3.10:
I had to do the following change in order to have it back working in my project:
python3.10/site-packages/pure_pagination/paginator.py:
replace the first line "
import collections
" into:AND line 109 "
elif isinstance(result, collections.Iterable):
" intoelif isinstance(result, Iterable):
The text was updated successfully, but these errors were encountered: