diff options
Diffstat (limited to 'django/forms')
| -rw-r--r-- | django/forms/formsets.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/django/forms/formsets.py b/django/forms/formsets.py index 4d2d9fca47..6f4783116d 100644 --- a/django/forms/formsets.py +++ b/django/forms/formsets.py @@ -60,6 +60,10 @@ class BaseFormSet(StrAndUnicode): def __len__(self): return len(self.forms) + def __nonzero__(self): + """All formsets have a management form which is not included in the length""" + return True + def _management_form(self): """Returns the ManagementForm instance for this FormSet.""" if self.is_bound: |
