#29998: pk setup for MTI to parent get confused by multiple OneToOne references.
-------------------------------------+-------------------------------------
     Reporter:  Mārtiņš Šulcs        |                    Owner:  felixxm
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by GitHub <noreply@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"bf77669453b9e9f64291da6701fe06fd5ba47e29" bf776694]:
 {{{
 #!CommitTicketReference repository=""
 revision="bf77669453b9e9f64291da6701fe06fd5ba47e29"
 Fixed #29998 -- Allowed multiple OneToOneFields to the parent model.

 We assumed that any OneToOneField's in a child model must be the
 parent link and raised an error when parent_link=True was not
 specified. This patch allows to specify multiple OneToOneField's to
 the parent model.

 OneToOneField's without a custom related_name will raise fields.E304
 and fields.E305 so this should warn users when they try to override
 the auto-created OneToOneField.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29998#comment:12>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.cee356b3dbc37b26d238230f8baefb73%40djangoproject.com.

Reply via email to