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:
parent
b2ccc4aede
commit
05e21ed229
@ -93,9 +93,6 @@ class UserUpdateView(ProtectQuerysetMixin, LoginRequiredMixin, UpdateView):
|
|||||||
del profile_form.fields[field_name]
|
del profile_form.fields[field_name]
|
||||||
|
|
||||||
context['profile_form'] = profile_form
|
context['profile_form'] = profile_form
|
||||||
|
|
||||||
if not self.object.profile.report_frequency:
|
|
||||||
del context['profile_form'].fields["last_report"]
|
|
||||||
|
|
||||||
|
|
||||||
return context
|
return context
|
||||||
|
Loading…
x
Reference in New Issue
Block a user