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

feat: inline pagination

Open Zerotask opened this issue 4 months ago • 8 comments

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.

Zerotask avatar Oct 14 '24 12:10 Zerotask