#35890: pre_save field in parent models are not called during update in
update_or_create
-------------------------------------+-------------------------------------
     Reporter:  Gagaro               |                    Owner:  (none)
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  dev
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Gagaro):

 I had more thoughts about it, and from a user perspective, I think having
 some fields but not others updated would be an unexpected behavior. The
 fields on the parent model are parts of the child one, it is transparent
 when we try to access or change them on the instance. I'd expect them to
 be updated in the same way the child ones are.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35890#comment:5>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019305b7ad7a-eb9b9abb-4f99-4e2e-be12-cbdcc59b8855-000000%40eu-central-1.amazonses.com.

Reply via email to