#7623: Multi-table inheritance: Add the ability create child instance from
existing parent
-------------------------------------+-------------------------------------
     Reporter:  brooks.travis@…      |                    Owner:  (none)
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:  model-inheritance,   |             Triage Stage:  Accepted
  multi-table-inheritance            |
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  1                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Simon Charette):

 I wonder if the newly introduced `force_insert` feature in Django 5.0 (not
 released yet) that allows specifying which tables should be inserted
 happens to address this issue see (#30382 and
 a40b0103bccb8216c944188d329d8ea5eceb7e92).


 To take the initially reported use case

 {{{#!python
 parent = Restaurant.objects.get(name__iexact="Bob's Place").parent
 bar = Bar(parent=parent, happy_hour=True)
 bar.save(force_insert=(Bar,))
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/7623#comment:47>
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/0107018a85116f1f-c98c4442-bfac-472b-af32-603fb5cad9cd-000000%40eu-central-1.amazonses.com.

Reply via email to