From 9824e844fa5f545c54212c797d4dba7dd49c916c Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Thu, 1 Oct 2015 17:36:57 +0200 Subject: [PATCH] Display avail.contact a bit more prominently --- stages/models.py | 2 +- templates/trainings_list.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/stages/models.py b/stages/models.py index fe006fb..9676f89 100644 --- a/stages/models.py +++ b/stages/models.py @@ -216,7 +216,7 @@ class Availability(models.Model): verbose_name = "Disponibilité" def __unicode__(self): - return '%s - %s (%s)' % (self.period, self.corporation, self.domain) + return '%s - %s (%s) - %s' % (self.period, self.corporation, self.domain, self.contact) @property def free(self): diff --git a/templates/trainings_list.html b/templates/trainings_list.html index 934232b..2be5c0a 100644 --- a/templates/trainings_list.html +++ b/templates/trainings_list.html @@ -1,6 +1,7 @@ {% for obj in trainings %}
  • {{ obj.student }} ({{ obj.student.klass }}) - {{ obj.availability.corporation }} - {{ obj.availability.domain }} {% if obj.referent %} (réf: {{ obj.referent }}){% else %}- Pas de référent{% endif %} + {% if obj.availability.contact %} (cont: {{ obj.availability.contact }}){% else %}- Pas de contact{% endif %}