Skip to content

Commit

Permalink
[#1033] ValidationError.__str__ now uses error_dict instead of error_…
Browse files Browse the repository at this point in the history
…summary so this can go back to being a string.
  • Loading branch information
johnglover authored and tobes committed Jun 24, 2013
1 parent 1d01f69 commit 8fb8a7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/logic/action/update.py
Expand Up @@ -766,8 +766,8 @@ def term_translation_update_many(context, data_dict):

if not (data_dict.get('data') and isinstance(data_dict.get('data'), list)):
raise ValidationError(
{'error': ['term_translation_update_many needs to have a '
'list of dicts in field data']}
{'error': 'term_translation_update_many needs to have a '
'list of dicts in field data'}
)

context['defer_commit'] = True
Expand Down

0 comments on commit 8fb8a7c

Please sign in to comment.