From f5f379e6ad80646f143bb3f09b8132b524a0fcf9 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Thu, 13 Aug 2020 19:48:15 +0200 Subject: [PATCH] BooleanField -> CharField (a locale name is not a boolean) --- apps/member/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/member/models.py b/apps/member/models.py index 20f50591..45a02b50 100644 --- a/apps/member/models.py +++ b/apps/member/models.py @@ -92,10 +92,11 @@ class Profile(models.Model): default=False, ) - ml_events_registration = models.BooleanField( + ml_events_registration = models.CharField( blank=True, null=True, default=None, + max_length=2, choices=[ (None, _("No")), ('fr', _("Yes (receive them in french)")),