Merge pull request #571 from alphagov/fix-blank-column-headers

Handle CSV files with blank column headers
This commit is contained in:
Chris Hill-Scott
2016-05-17 13:54:12 +01:00
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 %}

View File

@@ -16,4 +16,4 @@ pyexcel-ods3==0.1.1
git+https://github.com/alphagov/notifications-python-client.git@1.0.0#egg=notifications-python-client==1.0.0
git+https://github.com/alphagov/notifications-utils.git@5.2.3#egg=notifications-utils==5.2.3
git+https://github.com/alphagov/notifications-utils.git@5.2.5#egg=notifications-utils==5.2.5