Cache database backend should use rollback_unless_managed
In 1.1 and trunk I think it would be best if it used transaction.rollback_unless_managed() - as this causes an error when the code isn't under transaction management:
source:django/branches/releases/1.1.X/django/core/cache/backends/db.py#L68 and source:django/trunk/django/core/cache/backends/db.py#L68
Change History
(5)
| Has patch: |
set
|
| milestone: |
→ 1.2
|
| Triage Stage: |
Unreviewed → Accepted
|
| Component: |
Uncategorized → Cache system
|
| Resolution: |
→ fixed
|
| Status: |
new → closed
|
(In [12409]) Fixed #12189 -- Corrected rollback behavior in database cache backend. Thanks to Lakin Wecker for the report.