Changes between Initial Version and Version 1 of Ticket #16491, comment 1
- Timestamp:
- Jul 23, 2011, 5:03:39 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16491, comment 1
initial v1 1 1 We're discussing https://docs.djangoproject.com/en/dev/topics/db/transactions/. I'm accepting this ticket as a documentation patch, to fix the following inconsistency. 2 2 3 The docs for `commit_manually()` say:3 The docs for `commit_manually()` are misleading: 4 4 > If your view changes data and doesn't commit() or rollback(), Django will raise a TransactionManagementError exception. 5 5 6 Th is is incompatible withthe next paragraph, "Requirements for transaction handling":6 The behavior is correctly described in the next paragraph, "Requirements for transaction handling": 7 7 > This applies to all database operations, not just write operations. Even if your transaction only reads from the database, the transaction must be committed or rolled back before you complete a request. 8 8