Permalink
Browse files

cope with form errors on __all__

  • Loading branch information...
1 parent f1237f9 commit d1e721b50b8e56c282b51dff51a90a8fac11c744 @andymckay committed Jan 7, 2013
Showing with 3 additions and 1 deletion.
  1. +3 −1 django_paranoia/forms.py
@@ -51,7 +51,9 @@ def is_valid(self):
for k, errors in self.errors.items():
field = self.fields.get(k)
for error in errors:
- if error == field.error_messages['required']:
+ if field and error == field.error_messages['required']:
+ missing.append(k)
+ else:
missing.append(k)
if missing:

0 comments on commit d1e721b

Please sign in to comment.