1
0
mirror of https://github.com/django/django.git synced 2025-10-25 14:46:09 +00:00

Fixed a number of flake8 errors -- particularly around unused imports and local variables

This commit is contained in:
Alex Gaynor
2013-09-06 21:56:40 -07:00
parent a9589dd280
commit 2530735d2d
13 changed files with 8 additions and 21 deletions

View File

@@ -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: