0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

remove unused private method in BaseSearchQuery

This commit is contained in:
Josh Schneier 2016-02-25 23:39:02 -05:00 committed by Karl Hobley
parent f6842e6f2e
commit 182c16c46a

View File

@ -25,15 +25,6 @@ class BaseSearchQuery(object):
self.operator = operator or self.DEFAULT_OPERATOR
self.order_by_relevance = order_by_relevance
def _get_searchable_field(self, field_attname):
# Get field
field = dict(
(field.get_attname(self.queryset.model), field)
for field in self.queryset.model.get_searchable_search_fields()
).get(field_attname, None)
return field
def _get_filterable_field(self, field_attname):
# Get field
field = dict(