소스 검색

Add missing AutocompleteFields to Person model search_fields

as per https://github.com/wagtail/wagtail/pull/10341#issuecomment-1512846879
Matt Westcott 2 년 전
부모
커밋
1aa39cf598
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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