diff options
author | Brian Beck <exogen@gmail.com> | 2006-08-22 05:04:01 +0000 |
---|---|---|
committer | Brian Beck <exogen@gmail.com> | 2006-08-22 05:04:01 +0000 |
commit | 842340d453c3535d52a9f341aa57ed35f20e321a (patch) | |
tree | 908d16651acbcb262f52f02f82d2c33e39a789ed | |
parent | 91790e27cd00b88b0891cb815a36d21813246c5d (diff) | |
download | django-842340d453c3535d52a9f341aa57ed35f20e321a.tar.gz |
[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
-rw-r--r-- | django/contrib/search/base.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/contrib/search/base.py b/django/contrib/search/base.py index e63137a103..ae3e9eaf12 100644 --- a/django/contrib/search/base.py +++ b/django/contrib/search/base.py @@ -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: |