Add a comment to explain logic KeywordFacetGroup.has_facet in response to explanation in https://github.com/Gluejar/regluit/pull/427#discussion_r21712785
parent
cdeb13abb5
commit
f24478d641
|
@ -133,6 +133,8 @@ class KeywordFacetGroup(FacetGroup):
|
|||
self.facets = []
|
||||
|
||||
def has_facet(self, facet_name):
|
||||
|
||||
# recognize any facet_name that starts with "kw." as a valid facet name
|
||||
return facet_name.startswith('kw.')
|
||||
|
||||
def get_facet_class(self, facet_name):
|
||||
|
|
Loading…
Reference in New Issue