From 5f3c7b7e1d059397e915bfa71409b49648b5d524 Mon Sep 17 00:00:00 2001 From: Bakdolot <80908236+Bakdolot@users.noreply.github.com> Date: Tue, 7 Feb 2023 19:18:58 +0600 Subject: Fixed #34317 -- Renamed "instance" argument of BaseModelFormSet.save_existing() method. --- django/forms/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/forms') diff --git a/django/forms/models.py b/django/forms/models.py index 35ecdc1c0d..a8e6432f2a 100644 --- a/django/forms/models.py +++ b/django/forms/models.py @@ -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) -- cgit v1.3