Changes between Initial Version and Version 1 of Ticket #31394


Ignore:
Timestamp:
Mar 22, 2020, 11:24:06 AM (5 years ago)
Author:
Pascal de Sélys
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #31394 – Description

    initial v1  
    6767}}}
    6868
    69 But if I use a  I can't run a one to one creation with an inverse relationship  and yet during makemigrations  it says (HINT: ForeignKey(unique=True) is usually better served by a OneToOneField.),
     69But if I use a  I can't run a one to one creation with an inverse relationship  and yet during makemigrations  it says (fields.W342) Setting unique=True on a ForeignKey has the same effect as using a OneToOneField. (HINT: ForeignKey(unique=True) is usually better served by a OneToOneField.),
    7070
    7171Yes but without this function I can't find it. I can also use a signal but I find it a shame to have to create a signal for the simple creation of a one to one relationship that foreign key can provide.
Back to Top