mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-06-20 17:41:55 +02:00
🐛 Fix signup
This commit is contained in:
@ -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):
|
||||
|
@ -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(
|
||||
|
Reference in New Issue
Block a user