Skip to content
Snippets Groups Projects
Commit f2030e91 authored by Tomi Valentová's avatar Tomi Valentová
Browse files

fix search

parent 46e8d633
No related branches found
No related tags found
2 merge requests!1087Release,!1086fix search
Pipeline #19183 passed
......@@ -644,6 +644,19 @@ class DistrictSearchPage(MainSearchPageMixin):
parent_page_types = ["district.DistrictHomePage"]
### OTHERS
@property
def searchable_models(self) -> list:
return [
DistrictArticlePage,
DistrictCustomPage,
DistrictCrossroadPage,
DistrictNewProgramPage,
DistrictCenterPage,
DistrictContactPage,
]
class DistrictCustomPage(RoutablePageMixin, MainSimplePageMixin):
### FIELDS
......
......@@ -1723,7 +1723,7 @@ class MainSearchPageMixin(
@property
def searchable_models(self) -> list:
# NOTE: Must be implemented
return []
raise NotImplementedError
def get_context(self, request, *args, **kwargs):
context = super().get_context(request, args, kwargs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment