From a209115969b634086de9e25cebc496be5387a735 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 28 Apr 2008 00:58:21 +0000 Subject: [PATCH] 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 --- django/db/models/query.py | 1 + 1 file changed, 1 insertion(+) 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