TransactionManagementError raised when data is not changed
|Reported by:||alexander smishlajev||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
According to Django documentation, a
commit_manually decorator would raise
TransactionManagementError if decorated block changes data and doesn't
TransactionManagementError is raised when no data is changed, but some SELECT statements were executed by model managers.
If that is intended behavior, Django documentation should reflect it, but it would be better if SELECT statements could run without commit or rollback.
Change History (5)
comment:1 Changed 5 years ago by
|Component:||Uncategorized → Documentation|
|Triage Stage:||Unreviewed → Accepted|
|Type:||Uncategorized → Cleanup/optimization|