Changes between Initial Version and Version 3 of Ticket #23465


Ignore:
Timestamp:
Sep 16, 2014, 3:31:45 PM (10 years ago)
Author:
leandropls
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #23465 – Description

    initial v3  
    2727}}}
    2828
    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.
     29Apparently, 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.
Back to Top