#30388 closed Cleanup/optimization (fixed)
inspectdb generates unique ForeignKey instead of OneToOneField.
Reported by: | Ville Skyttä | Owned by: | Ville Skyttä |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
inspectdb generates unique ForeignKey
instead of OneToOneField
that caused raising fields.W342
warnings.
Change History (5)
comment:1 by , 6 years ago
Has patch: | set |
---|
comment:2 by , 6 years ago
Description: | modified (diff) |
---|---|
Summary: | inspectdb generates W342 emitting code → inspectdb generates unique ForeignKey instead of OneToOneField. |
Triage Stage: | Unreviewed → Accepted |
Version: | 2.2 → master |
comment:3 by , 6 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.
PR