From 776127b75bcb565281774ac5e231c730a8d210c7 Mon Sep 17 00:00:00 2001 From: Harpo Date: Fri, 6 Sep 2024 12:30:30 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=8C=20Index=20`slug`=20(#202)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Exhibits / Collections Adds `slug` field to index Closes #201 --- exhibits/models.py | 1 + ov_collections/models.py | 1 + 2 files changed, 2 insertions(+) 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]] = [