#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:  0                    |
Easy pickings:  0                    |
-------------------------------------+-------------------------------------
Changes (by bitwolaiye):

 * cc: bitwolaiye (added)


Comment:

 when I use #4102-update_modified_fields_only.diff I meet a question that
 item.save() will update all field in the first time, but update specific
 changed field in the next.
 so I change "self._reset_modified_attrs()" in the end of __init__ not in
 the top of __init__. because in __init__ __setattr__ will be called, and
 problem is come.

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

Reply via email to