1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-02-11 18:51:19 +00:00

Update file views.py

This commit is contained in:
thomasl 2025-02-09 15:51:05 +01:00
parent b2ccc4aede
commit 05e21ed229

View File

@ -93,9 +93,6 @@ class UserUpdateView(ProtectQuerysetMixin, LoginRequiredMixin, UpdateView):
del profile_form.fields[field_name]
context['profile_form'] = profile_form
if not self.object.profile.report_frequency:
del context['profile_form'].fields["last_report"]
return context