Change age color if student under 17 y.o.

This commit is contained in:
Claude Paroz 2016-01-20 18:00:05 +01:00
parent 976a559cca
commit ee28d8edc5
3 changed files with 4 additions and 1 deletions

View file

@ -177,6 +177,7 @@ class StudentSummaryView(DetailView):
pass
else:
context['age_for_stage'] = self.object.age_at(period.start_date)
context['age_style'] = 'under_17' if (int(context['age_for_stage'].split()[0]) < 17) else ''
return context