summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2008-04-28 00:58:21 +0000
committerAdrian Holovaty <adrian@holovaty.com>2008-04-28 00:58:21 +0000
commita209115969b634086de9e25cebc496be5387a735 (patch)
treef81df04aa863ec29635ace17dca2c3b91d76b1d6
parentd649d0f5f887f31fb44ae886ec93280d64cfc658 (diff)
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
-rw-r--r--django/db/models/query.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/models/query.py b/django/db/models/query.py
index e1e2bb19f2..3696181a5c 100644
--- a/django/db/models/query.py
+++ b/django/db/models/query.py
@@ -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