Skip to content

implement pagination In AdminModel2's list view #355

@the5fire

Description

@the5fire

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions