fix error when birthdate == null

This commit is contained in:
Julien Fastré 2018-06-05 11:43:20 +02:00
parent 983ed7a50d
commit 9bdec6338e

View File

@ -51,7 +51,7 @@
{% endspaceless %} {% endspaceless %}
</a> </a>
</td> </td>
<td>{{ person.birthdate|localizeddate('long', 'none', app.request.locale) }}</td> <td>{% if person.birthdate is not null %}{{ person.birthdate|localizeddate('long', 'none', app.request.locale) }}{% else %}&nbsp;{% endif %}</td>
<td> <td>
{% if person.nationality is not null %}{{ person.nationality.name|localize_translatable_string }}{% else %}{{ 'Without nationality'|trans }}{% endif %} {% if person.nationality is not null %}{{ person.nationality.name|localize_translatable_string }}{% else %}{{ 'Without nationality'|trans }}{% endif %}
</td> </td>