Commit 1b859fe9 authored by Nicolas Joyard's avatar Nicolas Joyard

Mandate with no end date = present

parent 8cbc5535
......@@ -24,7 +24,7 @@ def chamber_icon(chamber):
@register.filter
def mandate_date(date, arg=None):
if date.year == 9999:
if date is None or date.year == 9999:
return 'present'
else:
return naturalday(date, arg)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment