Skip to content

KeyError: '__all__' #15

@applecat

Description

@applecat

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions