mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-14 18:23:14 +00:00
Minor tweak to Indexed.get_search_fields()
This commit is contained in:
parent
1cbb4a13d5
commit
558a8c829f
1 changed files with 2 additions and 2 deletions
|
|
@ -37,7 +37,7 @@ class Indexed(object):
|
|||
|
||||
@classmethod
|
||||
def get_search_fields(cls):
|
||||
return getattr(cls, 'search_fields', tuple())
|
||||
return cls.search_fields
|
||||
|
||||
@classmethod
|
||||
def get_searchable_search_fields(cls):
|
||||
|
|
@ -51,7 +51,7 @@ class Indexed(object):
|
|||
def get_indexed_objects(cls):
|
||||
return cls.objects.all()
|
||||
|
||||
indexed_fields = ()
|
||||
search_fields = ()
|
||||
|
||||
|
||||
class BaseField(object):
|
||||
|
|
|
|||
Loading…
Reference in a new issue