jmcclell / django-bootstrap-pagination

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

'QuerySet' object has no attribute 'paginator' #54

Closed azmainamin closed 8 years ago

azmainamin commented 8 years ago

I get this error on: {% bootstrap_paginate deals %}, where deals is a query_set object. Maybe I am using it wrong, but if I don't put a query set object, what do I put there?

kvdveer commented 8 years ago

bootstrap_paginate only handles visuals of the pagination - not the actual pagination itself. For that you'll need django's pagination object, typically constructed in the view.

azmainamin commented 8 years ago

Gotcha! Thanks a bunch!

On Mon, Jun 27, 2016 at 10:56 AM, Koert van der Veer < notifications@github.com> wrote:

bootstrap_paginate only handles visuals of the pagination - not the actual pagination itself. For that you'll need django's pagination https://docs.djangoproject.com/en/1.9/topics/pagination/ object, typically constructed in the view.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jmcclell/django-bootstrap-pagination/issues/54#issuecomment-228789481, or mute the thread https://github.com/notifications/unsubscribe/ALkJVA9Oj8bHygu2j24uKAIuFcLgAmeEks5qP_K1gaJpZM4I_POM .