1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-02-05 14:53:01 +00:00

Update file forms.py

This commit is contained in:
thomasl 2025-02-02 14:05:05 +01:00
parent 867bf9fd25
commit 1481aa0635

View File

@ -44,9 +44,9 @@ 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"))
report_frequency = forms.IntegerField(required=False, initial=0, label=_("Report frequency"), widget=django.forms.HiddenInput())
# last_report = forms.DateTimeField(required=False, disabled=True, label=_("Last report date"))
last_report = forms.DateTimeField(required=False, disabled=True, label=_("Last report date"))
VSS_charter_read = forms.BooleanField(
required=True,
@ -77,8 +77,7 @@ class ProfileForm(forms.ModelForm):
model = Profile
fields = '__all__'
# Remove ml_[asso]_registration from exclude if the concerned association uses nk20 to manage its mailing list.
# Remove report_frequency from exclude if you want to use this feature.
exclude = ('user', 'email_confirmed', 'registration_valid', 'ml_sport_registration', "ml_events_registration", "report_frequency", )
exclude = ('user', 'email_confirmed', 'registration_valid', 'ml_sport_registration', "ml_events_registration", )
class ImageForm(forms.Form):