Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Typo fix for an error path in r100090.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 014b96150916a2f275b4f82871ef56f35269e8b0 1 parent 29050ef
@malcolmt malcolmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/db/models/
2  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.
Something went wrong with that request. Please try again.