diff --git a/montage/admin_endpoints.py b/montage/admin_endpoints.py index a4f608d1..0dc28606 100644 --- a/montage/admin_endpoints.py +++ b/montage/admin_endpoints.py @@ -348,7 +348,7 @@ def import_entries(user_dao, round_id, request_dict): params = {'csv_url': csv_url} if warnings: msg = u'unable to load {} files ({!r})'.format(len(warnings), warnings) - import_warnings.append(msg) + import_warnings.append({'import issues': msg}) elif import_method == CATEGORY_METHOD: cat_name = request_dict['category'] entries = coord_dao.add_entries_from_cat(round_id, cat_name) @@ -367,7 +367,7 @@ def import_entries(user_dao, round_id, request_dict): u'- {}'.format(warning) for warning in warnings ]) msg = u'unable to load {} files:\n{}'.format(len(warnings), formatted_warnings) - import_warnings.append({'import issues', msg}) + import_warnings.append({'import issues': msg}) params = {'file_names': file_names} else: raise NotImplementedResponse()