1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-20 17:41:55 +02:00

🐛 Fix signup

This commit is contained in:
Yohann D'ANELLO
2020-08-06 19:56:37 +02:00
parent 48a7128370
commit fd2f426f55
4 changed files with 37 additions and 27 deletions

View File

@ -37,6 +37,8 @@ class ProfileForm(forms.ModelForm):
"""
A form for the extras field provided by the :model:`member.Profile` model.
"""
report_frequency = forms.IntegerField(required=False, initial=0, label=_("Report frequency"))
last_report = forms.DateField(required=False, disabled=True, label=_("Last report date"))
def save(self, commit=True):

View File

@ -99,7 +99,7 @@ class Profile(models.Model):
last_report = models.DateField(
verbose_name=_("last report date"),
default=timezone.now,
default=timezone.now().date(),
)
email_confirmed = models.BooleanField(