Changes between Initial Version and Version 1 of Ticket #31394
- Timestamp:
- Mar 22, 2020, 11:24:06 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31394 – Description
initial v1 67 67 }}} 68 68 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.),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 (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.), 70 70 71 71 Yes 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.