You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code the in usage example (in views.py) says Paginator accepts the request object as a parameter. This causes an__init__() takes 3 arguments exception. After checking the source it looks like it should be
p = Paginator(suburb_list, per_page=10)
which is also what ended up working for me.
Additionally the sample code for the Generic Class-Based View sets an object property as the model type, it should set the model property instead. As in
class MyModelListView(PaginationMixin, ListView):
# Important, this tells the ListView class we are paginating
paginate_by = 10
# Replace it for your model or use the queryset attribute instead
model = MyModel
The text was updated successfully, but these errors were encountered:
Code the in usage example (in views.py) says Paginator accepts the request object as a parameter. This causes an
__init__() takes 3 arguments
exception. After checking the source it looks like it should bewhich is also what ended up working for me.
Additionally the sample code for the Generic Class-Based View sets an object property as the model type, it should set the model property instead. As in
The text was updated successfully, but these errors were encountered: