11617 fix header field dupe test

This commit is contained in:
Arthur 2023-04-25 08:53:12 -07:00 committed by Jeremy Stretch
parent f46ac8b06a
commit b415c157cc

View File

@ -216,7 +216,7 @@ def headers_to_dict(headers):
header = header.strip()
if '.' in header:
field, to_field = header.split('.', 1)
if field in headers:
if field in header_dict:
raise forms.ValidationError(f'Duplicate or conflicting column header for "{field}"')
header_dict[field] = to_field
else: