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 aa35ef5f92..7648d97da4 100644
--- a/django/forms/models.py
+++ b/django/forms/models.py
@@ -570,7 +570,7 @@ class BaseModelFormSet(BaseFormSet):
def initial_form_count(self):
"""Return the number of forms that are required in this FormSet."""
- if not (self.data or self.files):
+ if not self.is_bound:
return len(self.get_queryset())
return super().initial_form_count()