Skip to content

feat: inline pagination #805

Closed as not planned
Closed as not planned
@Zerotask

Description

@Zerotask

Do you have any examples?

No

Is it a third party application feature request?

For example: No/Partly

In case of third party application, when it was updated last time?

For example: last week

Describe your feature request

We noticed performance issues when using many inlines, because django loads the content with the initial page request, even if we limit the objects for inlines. A solution for us was to change inlines with simple properties which link to the changelist of the respecting models. This does work but it redirects a user to another page. It would be a better UX if the user could stay on the actual detail page.

Therefore I suggest, where possible, to add options to defer loading data and instead load them afterwards / on demand with AJAX.
For example django-jet-reboot enables you to define autocomplete fields for choices which then will be loaded via AJAX on demand.

Another inline optimization would be this package (https://github.com/DmytroLitvinov/django-admin-inline-paginator-plus) which adds pagination for inlines.

It would also be a great benefit if django-unfold would offer the option to load inlines on click (by demand) and not with the initial page request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions