Parcourir la source

Merge branch 'dev' of github.com:geex-arts/django-jet into dev

Denis K il y a 8 ans
Parent
commit
fa81fcc62b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      jet/templatetags/jet_tags.py

+ 1 - 1
jet/templatetags/jet_tags.py

@@ -220,7 +220,7 @@ def select2_lookups(field):
         qs = field.field.queryset
         model = qs.model
 
-        if getattr(model, 'autocomplete_search_fields', None):
+        if getattr(model, 'autocomplete_search_fields', None) and getattr(field.field, 'autocomplete', True):
             choices = []
             app_label = model._meta.app_label
             model_name = model._meta.object_name