Opened 10 years ago

Closed 9 years ago

#3880 closed (fixed)

django.db.connection does not implement DB-API

Reported by: kent37@… Owned by: Jacob
Component: Documentation Version: master
Severity: Keywords:
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


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?)

Change History (3)

comment:1 Changed 10 years ago by Simon G. <dev@…>

Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

comment:2 Changed 10 years ago by Simon G. <dev@…>

Triage Stage: AcceptedDesign decision needed

Yes, we need to do one or the other.

comment:3 Changed 9 years ago by Jacob

Resolution: fixed
Status: newclosed

(In [5435]) Fixed #3880: added a link to the transaction docs from the model API. Thanks, ken37@….

Note: See TracTickets for help on using tickets.
Back to Top