Skip to content

Commit

Permalink
🐌 Index slug (#202)
Browse files Browse the repository at this point in the history
# Exhibits / Collections
Adds `slug` field to index

Closes #201
  • Loading branch information
mrharpo authored Sep 6, 2024
1 parent 000fe2c commit 776127b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions exhibits/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]] = [
Expand Down
1 change: 1 addition & 0 deletions ov_collections/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]] = [
Expand Down

0 comments on commit 776127b

Please sign in to comment.