From 014b96150916a2f275b4f82871ef56f35269e8b0 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Thu, 19 Mar 2009 09:43:45 +0000 Subject: [PATCH] Typo fix for an error path in r100090. git-svn-id: http://code.djangoproject.com/svn/django/trunk@10091 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/models/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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().")