From dc33160e0b826320c15ae64fff5415924896b4f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20P=C3=A9pin?= Date: Sat, 7 Jan 2017 13:13:12 +0100 Subject: [PATCH] Plus d'infos + pluralisation Sur la page des ratios par spectacle --- bda/models.py | 5 ----- bda/templates/bda/etat-places.html | 5 ++++- bda/views.py | 13 +++++++++---- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/bda/models.py b/bda/models.py index 5b814d3d..d1d4c2fd 100644 --- a/bda/models.py +++ b/bda/models.py @@ -1,9 +1,5 @@ # -*- coding: utf-8 -*- -from __future__ import division -from __future__ import print_function -from __future__ import unicode_literals - import calendar import random from datetime import timedelta @@ -53,7 +49,6 @@ class CategorieSpectacle(models.Model): verbose_name = "Catégorie" -@python_2_unicode_compatible class Spectacle(models.Model): title = models.CharField("Titre", max_length=300) category = models.ForeignKey(CategorieSpectacle, blank=True, null=True) diff --git a/bda/templates/bda/etat-places.html b/bda/templates/bda/etat-places.html index 7fb579e6..66958c56 100644 --- a/bda/templates/bda/etat-places.html +++ b/bda/templates/bda/etat-places.html @@ -38,7 +38,10 @@ {% endfor %} - Total : {{ total }} places demandées + + Total : {{ total }} place{{ total|pluralize }} demandée{{ total|pluralize }} + sur {{ proposed }} place{{ proposed|pluralize }} proposée{{ proposed|pluralize }} +