Kaydet (Commit) a2091159 authored tarafından Adrian Holovaty's avatar Adrian Holovaty

Fixed a bug with the new QuerySet update() method where it wasn't committing the…

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
üst d649d0f5
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment