django.db.connection does not implement DB-API
|Reported by:||Owned by:||Jacob|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
In the Model Reference section Executing custom SQL it says, "connection and cursor simply use the standard Python DB-API." This is not correct as django.db.connection does not have commit() or rollback() methods which are required by DB-API. Either the doc should be updated or the methods should be added to the connection.
It would be helpful if this section of the docs showed the correct way to commit (using transaction decorators?)