From 3c490660c5a61cdf3a71e690d4bfc1a7dfa51955 Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Mon, 28 Jan 2008 16:08:06 +0000 Subject: [PATCH] queryset-refactor: Fixed an idiotic, last-minute typo in [7043]. git-svn-id: http://code.djangoproject.com/svn/django/branches/queryset-refactor@7045 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/models/sql/query.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py index 2f50fdfc98..cb8bbc36bf 100644 --- a/django/db/models/sql/query.py +++ b/django/db/models/sql/query.py @@ -1176,7 +1176,7 @@ class UpdateQuery(Query): """ self.select_related = False self.pre_sql_setup() - if len(tables) != 1: + if len(self.tables) != 1: raise TypeError('Updates can only access a single database table at a time.') result = ['UPDATE %s' % self.tables[0]] result.append('SET')