From 079e0d1c3f186027c05064a43ef948f7a6dbf263 Mon Sep 17 00:00:00 2001 From: Maurice Debray Date: Fri, 24 Dec 2021 00:28:07 +0100 Subject: [PATCH] =?UTF-8?q?Changement=20de=20champ=20rainbow=20du=20mod?= =?UTF-8?q?=C3=A8le=20:=20Bool=20>=20Choice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- actu/models.py | 2 +- calendrier/templates/calendrier/home.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/actu/models.py b/actu/models.py index 2fd4625..8d16ecb 100644 --- a/actu/models.py +++ b/actu/models.py @@ -7,7 +7,7 @@ class Actu(models.Model): text = models.TextField(_("Info"), null=True, blank=False) text_en = models.TextField(("Info en anglais"), null=True, blank=True) order = models.IntegerField(verbose_name=_("ordre")) - rainbow = models.BooleanField(_("Actu en arc-en-ciel"), default=False) + rainbow = models.CharField(verbose_name = _("Actu en arc-en-ciel"), max_length=1, choices = (('y', 'Oui'), ('n', 'Non')), default='n', blank = False) def __str__(self): return self.text diff --git a/calendrier/templates/calendrier/home.html b/calendrier/templates/calendrier/home.html index fa297e2..3ee4f73 100644 --- a/calendrier/templates/calendrier/home.html +++ b/calendrier/templates/calendrier/home.html @@ -33,7 +33,7 @@

{% blocktrans count counter=actu|length %}Actualité des chef·fe·s:{% plural %}Actualités des chef·fe·s:{% endblocktrans %}