-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
TokenAdmin: add 'user' to autocomplete_fields #6762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
TokenAdmin is unusable with a big number of user records (in this case ~150k). Django 2.0 added the [ModelAdmin.autocomplete_fields](https://docs.djangoproject.com/en/stable/ref/contrib/admin/#django.contrib.admin.ModelAdmin.autocomplete_fields) option to use select2 to provide a better user experience. If support for django 1.11 is dropped, this change would make the `TokenAdmin` usable again.
"If support for django 1.11 is dropped" Presumably there's no reason we can't accept this change, without having to drop Django 1.11. It should be a problem to set the "autocomplete_fields" attribute, even if it's not actually used right? |
You are right, adding the option doesn't matter to django==1.11. |
This one broke the existing code.
When running django 2.2.3 with drf 3.10.0. |
Hi @sourcepirate, could you open a new issue to track this? |
Sure!
I need to modify my |
TokenAdmin is unusable with a big number of user records (in this case ~150k). Django 2.0 added the [ModelAdmin.autocomplete_fields](https://docs.djangoproject.com/en/stable/ref/contrib/admin/#django.contrib.admin.ModelAdmin.autocomplete_fields) option to use select2 to provide a better user experience. If support for django 1.11 is dropped, this change would make the `TokenAdmin` usable again.
TokenAdmin is unusable with a big number of user records (in this case ~150k). Django 2.0 added the [ModelAdmin.autocomplete_fields](https://docs.djangoproject.com/en/stable/ref/contrib/admin/#django.contrib.admin.ModelAdmin.autocomplete_fields) option to use select2 to provide a better user experience. If support for django 1.11 is dropped, this change would make the `TokenAdmin` usable again.
TokenAdmin is unusable with a big number of user records (in this case ~150k). Django 2.0 added the ModelAdmin.autocomplete_fields option to use select2 to provide a better user experience.
If support for django 1.11 is dropped, this change would make the
TokenAdmin
usable again.