Implement auto-complete for /admin/ forms that reference User

We have so many users now that loading these forms take forever.
Instead, implement a textbox with autocomplete using django-selectable,
which will not load the whole list of users at once.
This commit is contained in:
Magnus Hagander
2016-06-23 17:57:38 +02:00
parent a6d3b44038
commit 27e1c73368
6 changed files with 86 additions and 2 deletions

View File

@ -135,6 +135,9 @@ urlpatterns = patterns('',
# Uncomment the next line to enable the admin:
(r'^admin/', include(admin.site.urls)),
# We use selectable...
(r'^selectable/', include('selectable.urls')),
# This should not happen in production - serve by the webserver natively!
url(r'^(favicon.ico)$', 'django.views.static.serve', {
'document_root': 'media',