Move the mailing list registration to the Profile model, see #50
This commit is contained in:
parent
1e4cbf60c5
commit
c50fdd6689
6 changed files with 30 additions and 42 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue