Commits

bb...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed 46330c9

[search-api] Allow shorthand for fields (attribute shorthand already supported)

  • Participants
  • Parent commits e52a311
  • Branches search-api

Comments (0)

Files changed (1)

File django/contrib/search/base.py

         """
         if fields is None:
             fields = []
+        elif isinstance(fields, basestring):
+            fields = [fields]
         if attributes is None:
             attributes = kwargs
         else: