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 Mariusz Felisiak)

inspectdb generates unique ForeignKey instead of OneToOneField that caused raising fields.W342 warnings.

Change History (2)

comment:1 by Ville Skyttä, 6 years ago

Has patch: set

comment:2 by Mariusz Felisiak, 6 years ago

Description: modified (diff)
Summary: inspectdb generates W342 emitting codeinspectdb generates unique ForeignKey instead of OneToOneField.
Triage Stage: UnreviewedAccepted
Version: 2.2master
Note: See TracTickets for help on using tickets.
Back to Top