Handle CSV files with blank column headers

Implements https://github.com/alphagov/notifications-utils/pull/32
This commit is contained in:
Chris Hill-Scott
2016-05-16 15:31:35 +01:00
parent d39717d348
commit 3944c67a0a
2 changed files with 8 additions and 1 deletions

View File

@@ -132,6 +132,13 @@
{{ text_field(item['columns'][column].data) }}
{% endif %}
{% endfor %}
{% if item['columns'].get(None) %}
{% for column in item['columns'][None].data %}
{% call field(status='default') %}
{{ column }}
{% endcall %}
{% endfor %}
{% endif %}
{% endcall %}
{% if count_of_displayed_recipients < count_of_recipients %}