Fixed a bug with the new QuerySet update() method where it wasn't committing the transaction (on Postgres, at least)

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2008-04-28 00:58:21 +00:00
parent d649d0f5f8
commit a209115969
1 changed files with 1 additions and 0 deletions

View File

@ -284,6 +284,7 @@ class QuerySet(object):
query = self.query.clone(sql.UpdateQuery)
query.add_update_values(kwargs)
query.execute_sql(None)
transaction.commit_unless_managed()
self._result_cache = None
update.alters_data = True