mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
Fixed #34317 -- Renamed "instance" argument of BaseModelFormSet.save_existing() method.
This commit is contained in:
parent
ae1fe72e9b
commit
5f3c7b7e1d
@ -756,7 +756,7 @@ class BaseModelFormSet(BaseFormSet, AltersData):
|
|||||||
"""Save and return a new model instance for the given form."""
|
"""Save and return a new model instance for the given form."""
|
||||||
return form.save(commit=commit)
|
return form.save(commit=commit)
|
||||||
|
|
||||||
def save_existing(self, form, instance, commit=True):
|
def save_existing(self, form, obj, commit=True):
|
||||||
"""Save and return an existing model instance for the given form."""
|
"""Save and return an existing model instance for the given form."""
|
||||||
return form.save(commit=commit)
|
return form.save(commit=commit)
|
||||||
|
|
||||||
|
@ -240,7 +240,8 @@ backends.
|
|||||||
Miscellaneous
|
Miscellaneous
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
* ...
|
* The ``instance`` argument of the undocumented
|
||||||
|
``BaseModelFormSet.save_existing()`` method is renamed to ``obj``.
|
||||||
|
|
||||||
.. _deprecated-features-5.0:
|
.. _deprecated-features-5.0:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user