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 @@