Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: '__all__' #15

Open
applecat opened this issue Jun 21, 2011 · 0 comments
Open

KeyError: '__all__' #15

applecat opened this issue Jun 21, 2011 · 0 comments

Comments

@applecat
Copy link

if views.py line 27 change if to elif:

    for key, val in errors.iteritems():
        if key == '__all__':
            final_errors['__all__'] = val
        elif not isinstance(form.fields[key], forms.FileField):
            html_id = form.fields[key].widget.attrs.get('id') or form[key].auto_id
            html_id = form.fields[key].widget.id_for_label(html_id)
            final_errors[html_id] = val
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant