Browse files

Typo fix for an error path in r100090.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
malcolmt committed Mar 19, 2009
1 parent 29050ef commit 014b96150916a2f275b4f82871ef56f35269e8b0
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/db/models/
@@ -609,7 +609,7 @@ def only(self, *fields):
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().")

0 comments on commit 014b961

Please sign in to comment.