mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #34317 -- Renamed "instance" argument of BaseModelFormSet.save_existing() method.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user