Fixed some flake8 errors from recent commits.

This commit is contained in:
Tim Graham 2014-02-15 11:21:15 -05:00
parent 1150053b99
commit 65b421c661
3 changed files with 6 additions and 5 deletions

View File

@ -145,8 +145,8 @@ class BaseModelAdminChecks(object):
) )
] ]
return list(chain(*[ return list(chain(*[
self._check_field_spec(cls, model, fields, '%s[1][\'fields\']' % label) self._check_field_spec(cls, model, fieldset_fields, '%s[1][\'fields\']' % label)
for fields in fieldset[1]['fields'] for fieldset_fields in fieldset[1]['fields']
])) ]))
def _check_field_spec(self, cls, model, fields, label): def _check_field_spec(self, cls, model, fields, label):

View File

@ -75,6 +75,7 @@ class Resolver404(Http404):
self.path = path self.path = path
self.tried = tried self.tried = tried
class NoReverseMatch(Exception): class NoReverseMatch(Exception):
pass pass