summaryrefslogtreecommitdiff
path: root/django/forms
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-09-06 21:56:40 -0700
committerAlex Gaynor <alex.gaynor@gmail.com>2013-09-06 21:56:40 -0700
commit2530735d2d57316d1df8177745e93a78de663ff7 (patch)
tree5cb8209d733574783dcbb2b48fede0e97ce724a0 /django/forms
parenta9589dd280ba84db3131f32b423ef45c67a5a236 (diff)
Fixed a number of flake8 errors -- particularly around unused imports and local variables
Diffstat (limited to 'django/forms')
-rw-r--r--django/forms/formsets.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/forms/formsets.py b/django/forms/formsets.py
index e46a440480..02b07a8604 100644
--- a/django/forms/formsets.py
+++ b/django/forms/formsets.py
@@ -289,7 +289,8 @@ class BaseFormSet(object):
# We loop over every form.errors here rather than short circuiting on the
# first failure to make sure validation gets triggered for every form.
forms_valid = True
- err = self.errors
+ # This triggers a full clean.
+ self.errors
for i in range(0, self.total_form_count()):
form = self.forms[i]
if self.can_delete: