jmcclell / django-bootstrap-pagination

Django template tag for rendering Page objects as Bootstrap pagination HTML
MIT License
212 stars 83 forks source link

Does not work with python 3.4 and Django >= 1.8 #33

Closed LennyLip closed 9 years ago

LennyLip commented 9 years ago
bootstrap_pagination\templatetags\bootstrap_pagination.py", line 151, in render
    page_count = page.paginator.num_pages
AttributeError: 'str' object has no attribute 'paginator'

in debugger page=''

LennyLip commented 9 years ago

My mistake. But need more docs! I think, that page_obj its query for pagination (and it will be cool).

For other user - page_obj it result of page_obj = paginator.page() in a view

LennyLip commented 9 years ago

http://stackoverflow.com/a/31849909/1271271 maybe my answert will help someone