Fixed the template strings that were bugging out.
All checks were successful
StarFields Django Rest Framework Generics / build (push) Successful in 13s

This commit is contained in:
2024-08-18 16:34:42 +03:00
parent cc2528344d
commit 7be7104346

View File

@@ -122,7 +122,7 @@ class CategoryFilter(BaseFilterBackend):
This filter assigns the view.category object for later use, in particular This filter assigns the view.category object for later use, in particular
for filters that depend on this one. for filters that depend on this one.
""" """
template = 'starfields_drf_generics/templates/filters/categories.html' template = 'filters/categories.html'
category_field = 'category' category_field = 'category'
def get_category_class(self, view, request): def get_category_class(self, view, request):
@@ -246,7 +246,7 @@ class FacetFilter(BaseFilterBackend):
view.facets which includes all the facets applicable to the current view.facets which includes all the facets applicable to the current
category. category.
""" """
template = 'starfields_drf_generics/templates/filters/facets.html' template = 'filters/facets.html'
def get_facet_class(self, view, request): def get_facet_class(self, view, request):
return getattr(view, 'facet_class', None) return getattr(view, 'facet_class', None)
@@ -613,7 +613,7 @@ class TrigramSearchFilter(BaseFilterBackend):
# TODO misunderstood the urlconf stuff of the RUD methods, this is probably unnecessary # TODO misunderstood the urlconf stuff of the RUD methods, this is probably unnecessary
class SlugSearchFilter(BaseFilterBackend): class SlugSearchFilter(BaseFilterBackend):
# The URL query parameter used for the search. # The URL query parameter used for the search.
template = 'starfields_drf_generics/templates/filters/slug.html' template = 'filters/slug.html'
slug_title = _('Slug Search') slug_title = _('Slug Search')
slug_description = _("The instance's slug.") slug_description = _("The instance's slug.")
slug_field = 'slug' slug_field = 'slug'