Opened 6 years ago
Last modified 6 years ago
#30388 closed Cleanup/optimization
inspectdb generates unique ForeignKey instead of OneToOneField. — at Version 2
Reported by: | Ville Skyttä | Owned by: | nobody |
---|---|---|---|
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 (2)
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 |
Note:
See TracTickets
for help on using tickets.