django-admin2 icon indicating copy to clipboard operation
django-admin2 copied to clipboard

implement pagination In AdminModel2's list view

Open the5fire opened this issue 12 years ago • 2 comments

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 ?

the5fire avatar Jul 28 '13 02:07 the5fire

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?

pydanny avatar Jul 28 '13 09:07 pydanny

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

the5fire avatar Jul 29 '13 04:07 the5fire