Opened 17 years ago

Closed 17 years ago

#3880 closed (fixed)

django.db.connection does not implement DB-API

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

Description

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 by Simon G. <dev@…>, 17 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Simon G. <dev@…>, 17 years ago

Triage Stage: AcceptedDesign decision needed

Yes, we need to do one or the other.

comment:3 by Jacob, 17 years ago

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