diff options
Diffstat (limited to 'django/forms/formsets.py')
| -rw-r--r-- | django/forms/formsets.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/formsets.py b/django/forms/formsets.py index 2bd11d9f53..d421770093 100644 --- a/django/forms/formsets.py +++ b/django/forms/formsets.py @@ -119,7 +119,7 @@ class BaseFormSet(object): return self.management_form.cleaned_data[INITIAL_FORM_COUNT] else: # Use the length of the initial data if it's there, 0 otherwise. - initial_forms = self.initial and len(self.initial) or 0 + initial_forms = len(self.initial) if self.initial else 0 return initial_forms def _construct_forms(self): |
