#31382: Silent failure when saving non-concrete field with update_fields
-------------------------------------+-------------------------------------
     Reporter:  Peter Law            |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Sanskar Jaiswal):

 Replying to [ticket:31382 Peter Law]:
 > If you have a non-concrete field which wraps a couple of concrete fields
 (a bit like `GenericForeignKey`, though my codebase doesn't uses this for
 compound data types rather than relations), then when you pass the name of
 that non-concrete field to
 `save(update_fields=('my_non_concrete_field',))`, the model will be saved
 '''without''' saving that field and yet no error will be emitted.

 Hey Peter,
 Could you kindly provide a minimal code sample so that I can successfully
 reproduce this error on my machine?

 Thanks
 Sanskar

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31382#comment:3>
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 on the web visit 
https://groups.google.com/d/msgid/django-updates/068.f13f3603f654eb89a15f25afddaf99e7%40djangoproject.com.

Reply via email to