Commit a2091159 authored by Adrian Holovaty's avatar Adrian Holovaty
Browse files

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

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
parent d649d0f5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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