Re: ModelForm with field subset saving all fields

2017-07-29 Thread Tim Graham
It might be worth considering. Here's a quick patch: diff --git a/django/forms/models.py b/django/forms/models.py index ffa8982..bd5d108 100644 --- a/django/forms/models.py +++ b/django/forms/models.py @@ -454,7 +454,8 @@ class BaseModelForm(BaseForm): ) if commit:

ModelForm with field subset saving all fields

2017-07-20 Thread Cristina Botez
I'm using a view that combines 2 forms (which were split in order to facilitate reuse and to separate concerns). The model instance I am sending to both is the same, so when one form sets the new values on the instance, the other can see them. The problem is that when the first form is saved, t