1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

Move the mailing list registration to the Profile model, see #50

This commit is contained in:
Yohann D'ANELLO
2020-08-13 19:43:37 +02:00
parent 1e4cbf60c5
commit c50fdd6689
6 changed files with 30 additions and 42 deletions

View File

@ -92,6 +92,28 @@ class Profile(models.Model):
default=False,
)
ml_events_registration = models.BooleanField(
blank=True,
null=True,
default=None,
choices=[
(None, _("No")),
('fr', _("Yes (receive them in french)")),
('en', _("Yes (receive them in english)")),
],
verbose_name=_("Register on the mailing list to stay informed of the events of the campus (1 mail/week)"),
)
ml_sport_registration = models.BooleanField(
default=False,
verbose_name=_("Register on the mailing list to stay informed of the sport events of the campus (1 mail/week)"),
)
ml_art_registration = models.BooleanField(
default=False,
verbose_name=_("Register on the mailing list to stay informed of the art events of the campus (1 mail/week)"),
)
report_frequency = models.PositiveSmallIntegerField(
verbose_name=_("report frequency (in days)"),
default=0,