mirror of
https://github.com/django/django.git
synced 2025-07-04 01:39:20 +00:00
[search-api] Allow shorthand for fields (attribute shorthand already supported)
git-svn-id: http://code.djangoproject.com/svn/django/branches/search-api@3645 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
91790e27cd
commit
842340d453
@ -93,6 +93,8 @@ class Indexer(object):
|
||||
"""
|
||||
if fields is None:
|
||||
fields = []
|
||||
elif isinstance(fields, basestring):
|
||||
fields = [fields]
|
||||
if attributes is None:
|
||||
attributes = kwargs
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user