Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge 4ba7d0a into 4d9e4c6

  • Loading branch information...
commit 93f37820f1f5edc17b48d01ddfaae2de1ae31423 2 parents 4d9e4c6 + 4ba7d0a
@gsong gsong authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/core/cache/backends/db.py
View
1  django/core/cache/backends/db.py
@@ -179,6 +179,7 @@ def clear(self):
table = connections[db].ops.quote_name(self._table)
cursor = connections[db].cursor()
cursor.execute('DELETE FROM %s' % table)
+ transaction.commit_unless_managed(using=db)
# For backwards compatibility
class CacheClass(DatabaseCache):
Please sign in to comment.
Something went wrong with that request. Please try again.