Add a comment to explain logic KeywordFacetGroup.has_facet in response to explanation in https://github.com/Gluejar/regluit/pull/427#discussion_r21712785

pull/1/head
Raymond Yee 2014-12-11 14:08:19 -08:00
parent cdeb13abb5
commit f24478d641
1 changed files with 2 additions and 0 deletions

View File

@ -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):