Changes between Initial Version and Version 3 of Ticket #23465
- Timestamp:
- Sep 16, 2014, 3:31:45 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #23465 – Description
initial v3 27 27 }}} 28 28 29 Apparently, in "Parent" creation, the user "myuser" is being destroyed. Django docs show [1] that you can "attach" one model to other via OneToOneField the way I'm doing. It also says that multi-table inheritance automatically creates a OneToOneField[2]. But as I inherit from User and set its OneToOneField to an existing instance of the user, the specified existing instance gets destroyed. The expected result was that django simply made the association.29 Apparently, in "Parent" creation, the user "myuser" is being destroyed. Django docs show that you can "attach" one model to other via OneToOneField the way I'm doing. It also says that multi-table inheritance automatically creates a OneToOneField. But as I inherit from User and set its OneToOneField to an existing instance of the user, the specified existing instance gets destroyed. The expected result was that django simply made the association.