From 26a50a2219e4cd4403da62ffefc268c62324dbb9 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Fri, 7 Jan 2022 03:06:05 +0100 Subject: [PATCH] Remove autocomplete from Admin There are two reasons: it does not work in Android 6 built-in browser, and also it does not play nice with dark mode of Admin. --- wishlist/admin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wishlist/admin.py b/wishlist/admin.py index 85fe77a..0d134b6 100644 --- a/wishlist/admin.py +++ b/wishlist/admin.py @@ -10,9 +10,9 @@ class WishedItemAdminForm(ModelForm): model = m.WishedItem fields = '__all__' widgets = { - 'wishlists': autocomplete.ModelSelect2Multiple( - url='wishlist_list_autocomplete', - ), +# 'wishlists': autocomplete.ModelSelect2Multiple( +# url='wishlist_list_autocomplete', +# ), } @admin.register(m.WishedItem)