Opened 9 years ago
Closed 9 years ago
#26593 closed Cleanup/optimization (fixed)
Allowed overriding SQL phrase for deferrable ForeignKeys
Reported by: | Markus Holtermann | Owned by: | Markus Holtermann |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The sql_create_fk
string in the database schema editor's contains a phrase DEFERRABLE INITIALLY DEFERRED
. This phrase is supposed to be easy to override with a connection's ops.deferrable_sql()
method. However, the backend operation method is not used at all. Therefore, 3rd party backends have to override the sql_create_fk
string in order to adjust it.
Change History (3)
comment:1 by , 9 years ago
Status: | new → assigned |
---|---|
Type: | Uncategorized → Bug |
comment:2 by , 9 years ago
Triage Stage: | Accepted → Ready for checkin |
---|---|
Type: | Bug → Cleanup/optimization |
Note:
See TracTickets
for help on using tickets.
PR: https://github.com/django/django/pull/6565