diff --git a/preferences/models.py b/preferences/models.py index 31409dd..e854bd7 100644 --- a/preferences/models.py +++ b/preferences/models.py @@ -129,4 +129,8 @@ class Cotisation(models.Model): history = HistoricalRecords() def __str__(self): - return "Cotisation de " + str(self.duration) + " jours pour le prix de " + str(self.amount) + "€" + if self.duration == 1: + jour = "jour" + else: + jour = "jours" + return "Cotisation de " + str(self.duration) + " " + jour + " pour le prix de " + str(self.amount) + "€" diff --git a/preferences/templates/preferences/cotisations_index.html b/preferences/templates/preferences/cotisations_index.html index 8ede5a4..bc52519 100644 --- a/preferences/templates/preferences/cotisations_index.html +++ b/preferences/templates/preferences/cotisations_index.html @@ -25,7 +25,7 @@
{% for cotisation in cotisations %}