#34634: Creating objects with nested MTI crashes.
-------------------------------------+-------------------------------------
     Reporter:  Mariusz Felisiak     |                    Owner:  Akash
                                     |  Kumar Sen
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  4.2
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Akash Kumar Sen):

 I tried to do the following:

 {{{
 class ItalianRestaurantManyParents(ItalianRestaurant, Place):
       place_ptr = models.OneToOneField(
                  Place, on_delete=models.CASCADE, parent_link=True
        )
 }}}

 This is producing the expected conflict of field on checks.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34634#comment:14>
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/01070188ba666329-c4488974-68d9-4cb8-933b-cef4041788c1-000000%40eu-central-1.amazonses.com.

Reply via email to