1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

Prepare weekly reports

This commit is contained in:
Yohann D'ANELLO
2020-08-05 23:19:17 +02:00
parent 24ac3ce45f
commit 33806967c8
9 changed files with 254 additions and 199 deletions

View File

@ -37,6 +37,7 @@ class ProfileForm(forms.ModelForm):
"""
A form for the extras field provided by the :model:`member.Profile` model.
"""
last_report = forms.DateField(required=False, disabled=True, label=_("Last report date"))
def save(self, commit=True):
if not self.instance.section or (("department" in self.changed_data