diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2009-03-19 09:43:45 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2009-03-19 09:43:45 +0000 |
| commit | 014b96150916a2f275b4f82871ef56f35269e8b0 (patch) | |
| tree | adc453de463f98fdf95cfb4bffaeda5160994051 | |
| parent | 29050ef999e1931efb6c62471c7e07d2ea5e96ea (diff) | |
Typo fix for an error path in r100090.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10091 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/db/models/query.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/models/query.py b/django/db/models/query.py index d5ff1b2fe2..ea7129b693 100644 --- a/django/db/models/query.py +++ b/django/db/models/query.py @@ -609,7 +609,7 @@ class QuerySet(object): 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().") |
