Skip to content

Commit

Permalink
Typo fix for an error path in r100090.
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10091 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Mar 19, 2009
1 parent 29050ef commit 014b961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/db/models/query.py
Expand Up @@ -609,7 +609,7 @@ def only(self, *fields):
method and that are not already specified as deferred are loaded method and that are not already specified as deferred are loaded
immediately when the queryset is evaluated. immediately when the queryset is evaluated.
""" """
if fields == [None]: if fields == (None,):
# Can only pass None to defer(), not only(), as the rest option. # 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. # That won't stop people trying to do this, so let's be explicit.
raise TypeError("Cannot pass None as an argument to only().") raise TypeError("Cannot pass None as an argument to only().")
Expand Down

0 comments on commit 014b961

Please sign in to comment.