Changes between Initial Version and Version 1 of Ticket #16491, comment 1


Ignore:
Timestamp:
07/23/11 05:03:39 (4 years ago)
Author:
aaugustin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16491, comment 1

    initial v1  
    11We'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.
    22
    3 The docs for `commit_manually()` say:
     3The docs for `commit_manually()` are misleading:
    44> If your view changes data and doesn't commit() or rollback(), Django will raise a TransactionManagementError exception.
    55
    6 This is incompatible with the next paragraph, "Requirements for transaction handling":
     6The behavior is correctly described in the next paragraph, "Requirements for transaction handling":
    77> 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.
    88
Back to Top