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
This commit is contained in:
parent
d649d0f5f8
commit
a209115969
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue