mirror of
https://github.com/django/django.git
synced 2025-03-10 01:12:53 +00:00
Typo fix for an error path in r100090.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10091 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
29050ef999
commit
014b961509
@ -609,7 +609,7 @@ class QuerySet(object):
|
|||||||
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().")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user