diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-01-28 16:08:06 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-01-28 16:08:06 +0000 |
| commit | 3c490660c5a61cdf3a71e690d4bfc1a7dfa51955 (patch) | |
| tree | 98b1008e1bfb089e632af907ef19c53e31854abf | |
| parent | de94d0cb9381bcab02b7be0de1d8ac577bcfab92 (diff) | |
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
| -rw-r--r-- | django/db/models/sql/query.py | 2 |
1 files changed, 1 insertions, 1 deletions
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') |
