Django admin filters + select2 + loading many options asynchronously

286 views
Skip to first unread message

Federico Capoano

unread,
Aug 4, 2021, 2:45:16 PM8/4/21
to Django users
Hi everyone,

when adding adming filters by foreign key in the admin, sometimes the possible values are too many to load.

So I am thinking, why not load values asynchronously and show these with select2?
Probably only a certain number of values should be fetched and then while scrolling more values should be loaded.

I am wondering, is there any solution for this already?

Thanks in advance
Best regards

Derek

unread,
Aug 6, 2021, 1:53:35 AM8/6/21
to Django users

Derek

unread,
Aug 6, 2021, 1:56:15 AM8/6/21
to Django users
Alternatively, there is : https://pypi.org/project/django-admin-autocomplete-filter/ 

(My own issue with that one s that does not necessarily match any custom styling, but that is probably not a problem for most.)

Reply all
Reply to author
Forward
0 new messages