#4102: Allow UPDATE of only specific fields in model.save()
-------------------------------------+-------------------------------------
     Reporter:  Collin Grady         |                    Owner:  cgrady
  <cgrady@…>                         |                   Status:  new
         Type:  New feature          |                  Version:  SVN
    Component:  Database layer       |               Resolution:
  (models, ORM)                      |             Triage Stage:  Accepted
     Severity:  Normal               |      Needs documentation:  1
     Keywords:  update fields sql    |  Patch needs improvement:  1
  row table modified                 |                    UI/UX:  0
    Has patch:  1                    |
  Needs tests:  1                    |
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by akaariai):

 Looks good (although I haven't done a full review). Skipping deferred
 model handling is OK, it does actually contain some possible issues (load
 deferred model, set attributes from a form, save() must work). I think
 this could be dealt with, but lets just leave it out for now.

 The pre/post save signal should get a new argument. There is some
 precedence to adding arguments to signals ("using" in 1.3 for example) so
 this should not be impossible to do from backwards compatibility point of
 view. The .save() is also documented to take kwargs, so changing save's
 signature should be OK, too.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/4102#comment:78>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to