1
0
mirror of https://github.com/django/django.git synced 2025-07-05 18:29:11 +00:00

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
This commit is contained in:
Malcolm Tredinnick 2008-01-28 16:08:06 +00:00
parent de94d0cb93
commit 3c490660c5

View File

@ -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')