Skip to content

Commit

Permalink
Merge pull request #1827 from aitormagan/1710-empty_non_existing_fields
Browse files Browse the repository at this point in the history
Replace missing_fields by non_existing_filed_names in order to get correctly the list of non existing fields.

Fix #1710.
  • Loading branch information
nigelbabu committed Jul 28, 2014
2 parents 5efd71f + 16d3163 commit 829c6ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/datastore/db.py
Expand Up @@ -644,7 +644,7 @@ def upsert_data(context, data_dict):
if non_existing_filed_names:
raise ValidationError({
'fields': [u'fields "{0}" do not exist'.format(
', '.join(missing_fields))]
', '.join(non_existing_filed_names))]
})

unique_values = [record[key] for key in unique_keys]
Expand Down

0 comments on commit 829c6ee

Please sign in to comment.