summaryrefslogtreecommitdiff
path: root/django/forms
diff options
context:
space:
mode:
Diffstat (limited to 'django/forms')
-rw-r--r--django/forms/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/models.py b/django/forms/models.py
index 15d50419d4..cd8f027070 100644
--- a/django/forms/models.py
+++ b/django/forms/models.py
@@ -591,7 +591,7 @@ class BaseModelFormSet(BaseFormSet):
def save_existing_objects(self, commit=True):
self.changed_objects = []
self.deleted_objects = []
- if not self.get_queryset():
+ if not self.initial_forms:
return []
saved_instances = []