mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +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."""
|
||||
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)
|
||||
|
||||
|
@ -240,7 +240,8 @@ backends.
|
||||
Miscellaneous
|
||||
-------------
|
||||
|
||||
* ...
|
||||
* The ``instance`` argument of the undocumented
|
||||
``BaseModelFormSet.save_existing()`` method is renamed to ``obj``.
|
||||
|
||||
.. _deprecated-features-5.0:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user