Author: bbeck
Date: 2006-08-22 00:04:01 -0500 (Tue, 22 Aug 2006)
New Revision: 3645

Modified:
   django/branches/search-api/django/contrib/search/base.py
Log:
[search-api] Allow shorthand for fields  (attribute shorthand already supported)

Modified: django/branches/search-api/django/contrib/search/base.py
===================================================================
--- django/branches/search-api/django/contrib/search/base.py    2006-08-22 
04:58:16 UTC (rev 3644)
+++ django/branches/search-api/django/contrib/search/base.py    2006-08-22 
05:04:01 UTC (rev 3645)
@@ -93,6 +93,8 @@
         """
         if fields is None:
             fields = []
+        elif isinstance(fields, basestring):
+            fields = [fields]
         if attributes is None:
             attributes = kwargs
         else:


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to