Skip to content
Snippets Groups Projects
Commit f648814a authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Correctly raise exception if other errors exist

parent 88607918
No related branches found
No related tags found
No related merge requests found
...@@ -55,7 +55,7 @@ class CustomFormFieldsBlock(FormFieldsBlock): ...@@ -55,7 +55,7 @@ class CustomFormFieldsBlock(FormFieldsBlock):
[ValidationError('Error', params={'info': ErrorList(['Duplicate'])})] [ValidationError('Error', params={'info': ErrorList(['Duplicate'])})]
) )
if all_errors: if all_errors or error_dict:
error_dict['__all__'] = all_errors error_dict['__all__'] = all_errors
raise ValidationError('Error', params=error_dict) raise ValidationError('Error', params=error_dict)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment