diff --git a/exhibits/models.py b/exhibits/models.py index c438a0c..8408c06 100644 --- a/exhibits/models.py +++ b/exhibits/models.py @@ -192,6 +192,7 @@ class ExhibitPage(HeadlessMixin, Page): *Page.search_fields, index.AutocompleteField('body'), index.FilterField('featured'), + index.SearchField('slug'), ] content_panels: ClassVar[list[FieldPanel]] = [ diff --git a/ov_collections/models.py b/ov_collections/models.py index 98b587d..9786276 100644 --- a/ov_collections/models.py +++ b/ov_collections/models.py @@ -66,6 +66,7 @@ class Collection(HeadlessMixin, Page): search_fields: ClassVar[list[index.SearchField]] = [ *Page.search_fields, index.AutocompleteField('introduction'), + index.SearchField('slug'), ] content_panels: ClassVar[list[FieldPanel]] = [