From d6c88e209374fd9fa92a486926a586e080657331 Mon Sep 17 00:00:00 2001 From: Tasos Katsoulas Date: Fri, 13 Feb 2015 11:34:53 +0200 Subject: [PATCH] [bug 1100802] Check if date_left_program exists in profile view template. --- remo/profiles/templates/profiles_view.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/remo/profiles/templates/profiles_view.html b/remo/profiles/templates/profiles_view.html index f1829c971..2f3855fa2 100644 --- a/remo/profiles/templates/profiles_view.html +++ b/remo/profiles/templates/profiles_view.html @@ -113,7 +113,9 @@

This Rep has been part of the program from {{ user_profile.date_joined_program.strftime('%d %B %Y') }} - to {{ user_profile.date_left_program.strftime('%d %B %Y') }} + {% if user_profile.date_left_program %} + to {{ user_profile.date_left_program.strftime('%d %B %Y') }} + {% endif %}