django-admin2
django-admin2 copied to clipboard
implement pagination In AdminModel2's list view
at https://github.com/pydanny/django-admin2/blob/develop/djadmin2/types.py#L205
I think we need pass list_per_page to index_view(views.ModelListView)
like this:
def get_index_kwargs(self):
kwargs = self.get_default_view_kwargs()
kwargs.update({
'paginate_by': self.list_per_page,
})
return kwargs
or something else ?
First go ahead and change the ticket name to be for implementation of this as a feature. Even if AJAX pagination is done, there are going to be themes that will need list view pagination.
Second, what exactly where you trying to link to?
the link just link to where get_index_kwargs will be called in ModelAdmin.
I will start an pull-request later about the pagination in ModelAdmin and themes