Browse files

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

…mitting the transaction (on Postgres, at least)

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7487 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent d649d0f commit a209115969b634086de9e25cebc496be5387a735 @adrianholovaty adrianholovaty committed Apr 28, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 django/db/models/query.py
View
1 django/db/models/query.py
@@ -284,6 +284,7 @@ def update(self, **kwargs):
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

0 comments on commit a209115

Please sign in to comment.