Fixed #34317 -- Renamed "instance" argument of BaseModelFormSet.save_existing() method.

This commit is contained in:
Bakdolot 2023-02-07 19:18:58 +06:00 committed by GitHub
parent ae1fe72e9b
commit 5f3c7b7e1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -756,7 +756,7 @@ class BaseModelFormSet(BaseFormSet, AltersData):
"""Save and return a new model instance for the given form."""
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."""
return form.save(commit=commit)

View File

@ -240,7 +240,8 @@ backends.
Miscellaneous
-------------
* ...
* The ``instance`` argument of the undocumented
``BaseModelFormSet.save_existing()`` method is renamed to ``obj``.
.. _deprecated-features-5.0: