Forráskód Böngészése

Add missing AutocompleteFields to Person model search_fields

as per https://github.com/wagtail/wagtail/pull/10341#issuecomment-1512846879
Matt Westcott 2 éve
szülő
commit
1aa39cf598
1 módosított fájl, 2 hozzáadás és 0 törlés
  1. 2 0
      bakerydemo/base/models.py

+ 2 - 0
bakerydemo/base/models.py

@@ -79,6 +79,8 @@ class Person(
     search_fields = [
         index.SearchField("first_name"),
         index.SearchField("last_name"),
+        index.AutocompleteField("first_name"),
+        index.AutocompleteField("last_name"),
     ]
 
     @property