Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit a209115969b634086de9e25cebc496be5387a735 1 parent d649d0f
@adrianholovaty adrianholovaty authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.