From 8266afd6acbfcf64e974776f3f3402449625e4d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Mon, 6 Jun 2016 13:21:16 +0200 Subject: [PATCH] Ajoute le nom du tirage dans __unicode__ --- bda/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bda/models.py b/bda/models.py index 2926bb80..07e9158d 100644 --- a/bda/models.py +++ b/bda/models.py @@ -18,7 +18,7 @@ class Tirage(models.Model): return self.fermeture.strftime('%d %b %Y %H:%M') def __unicode__(self): - return u"Tirage au sort du BdA du %s" % (self.date_no_seconds()) + return u"%s - %s" % (self.title, self.date_no_seconds()) class Salle (models.Model): name = models.CharField ("Nom", max_length = 300)