#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 HAMA Barhamou):

 if this method worked:

 {{{
 extended_user = ExtendedUser(user_ptr_id=auth_user.pk)
 extended_user.__dict__.update(auth_user.__dict__)
 extended_user.save()
 }}}


 here: [https://stackoverflow.com/questions/4064808/django-model-
 inheritance-create-sub-instance-of-existing-instance-downcast]

 why not simply use it under the hood of django. Too easy. there must be
 something I've missed. **I wonder what it is. do you have an idea?** or
 maybe it's not enough to cover all scenarios.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/7623#comment:48>
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/0107018c9e01aa10-2d2c24cc-d63f-468f-8f49-b41fe8dfb8a0-000000%40eu-central-1.amazonses.com.

Reply via email to