Small changes

This commit is contained in:
jbdoderlein 2024-08-13 10:02:50 +00:00
parent f93479e8e8
commit f00d7873c9
5 changed files with 13 additions and 32 deletions

View file

@ -60,7 +60,7 @@ class ProfileForm(forms.ModelForm):
class Meta:
model = Profile
fields = '__all__'
exclude = ('user', 'email_confirmed', 'registration_valid', )
exclude = ('user', 'email_confirmed', 'registration_valid', 'section' )
class ImageForm(forms.Form):

View file

@ -43,7 +43,7 @@ class Profile(models.Model):
section = models.CharField(
verbose_name=_('section'),
help_text=_('e.g. "1A0", "9A♥", "SAPHIRE"'),
help_text=_('Auto generated'),
max_length=255,
blank=True,
default="",
@ -83,26 +83,6 @@ class Profile(models.Model):
default=False,
)
ml_events_registration = models.CharField(
blank=True,
default='',
max_length=2,
choices=[
('', _("No")),
('fr', _("Yes")),
],
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)"),