[1.4.X] Fixed #18548 - Clarified note regarding reusing model instances when form validation fails.
Backport of fd02bcff4a
from master
This commit is contained in:
parent
81020708ea
commit
6ebb6f9188
|
@ -206,7 +206,7 @@ of cleaning the model you pass to the ``ModelForm`` constructor. For instance,
|
||||||
calling ``is_valid()`` on your form will convert any date fields on your model
|
calling ``is_valid()`` on your form will convert any date fields on your model
|
||||||
to actual date objects. If form validation fails, only some of the updates
|
to actual date objects. If form validation fails, only some of the updates
|
||||||
may be applied. For this reason, you'll probably want to avoid reusing the
|
may be applied. For this reason, you'll probably want to avoid reusing the
|
||||||
model instance.
|
model instance passed to the form, especially if validation fails.
|
||||||
|
|
||||||
|
|
||||||
The ``save()`` method
|
The ``save()`` method
|
||||||
|
|
Loading…
Reference in New Issue