#30742: ModelForm should allow passing update_fields to instance.save()
----------------------------------------+---------------------------
               Reporter:  Václav Řehák  |          Owner:  nobody
                   Type:  New feature   |         Status:  new
              Component:  Forms         |        Version:  2.2
               Severity:  Normal        |       Keywords:  modelform
           Triage Stage:  Unreviewed    |      Has patch:  0
    Needs documentation:  0             |    Needs tests:  0
Patch needs improvement:  0             |  Easy pickings:  0
                  UI/UX:  0             |
----------------------------------------+---------------------------
 Model's `save()` method allows specifying which fields to update using
 `update_fields` kwarg (we are investigating this option to finetune db
 level permissions of our django instances).

 However, using this feature with ModelForm is bit inconvenient as
 `ModelForm.save()` calls `self.instance.save()` making it impossible to
 pass the `update_fields` to `instance.save()`.

 I think that add `update_field` to `ModelForm.save()`  should be pretty
 straightforward change without backwards compatibility issues

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30742>
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/050.05a0ec823739f00426359f3c9f7041b3%40djangoproject.com.

Reply via email to