Code

Opened 7 years ago

Closed 7 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:

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

Attachments (0)

Change History (3)

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

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

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

  • Triage Stage changed from Accepted to Design decision needed

Yes, we need to do one or the other.

comment:3 Changed 7 years ago by jacob

  • Resolution set to fixed
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.