1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +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:
Brian Beck 2006-08-22 05:04:01 +00:00
parent 91790e27cd
commit 842340d453

View File

@ -93,6 +93,8 @@ class Indexer(object):
""" """
if fields is None: if fields is None:
fields = [] fields = []
elif isinstance(fields, basestring):
fields = [fields]
if attributes is None: if attributes is None:
attributes = kwargs attributes = kwargs
else: else: