Author: mtredinnick
Date: 2009-03-19 04:43:45 -0500 (Thu, 19 Mar 2009)
New Revision: 10091

Modified:
   django/trunk/django/db/models/query.py
Log:
Typo fix for an error path in r100090.

Modified: django/trunk/django/db/models/query.py
===================================================================
--- django/trunk/django/db/models/query.py      2009-03-19 09:06:04 UTC (rev 
10090)
+++ django/trunk/django/db/models/query.py      2009-03-19 09:43:45 UTC (rev 
10091)
@@ -609,7 +609,7 @@
         method and that are not already specified as deferred are loaded
         immediately when the queryset is evaluated.
         """
-        if fields == [None]:
+        if fields == (None,):
             # Can only pass None to defer(), not only(), as the rest option.
             # That won't stop people trying to do this, so let's be explicit.
             raise TypeError("Cannot pass None as an argument to only().")


--~--~---------~--~----~------------~-------~--~----~
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 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to