mirror of
https://gitlab.crans.org/bde/nk20
synced 2025-02-11 18:51:19 +00:00
linters
This commit is contained in:
parent
5707abf9e2
commit
f6649f155a
@ -78,7 +78,6 @@ class UserUpdateView(ProtectQuerysetMixin, LoginRequiredMixin, UpdateView):
|
||||
if not self.object.profile.report_frequency:
|
||||
del profile_form.fields["last_report"]
|
||||
|
||||
|
||||
fields_to_check = list(profile_form.fields.keys())
|
||||
|
||||
# Delete the fields for which the user does not have the permission to modify
|
||||
@ -88,7 +87,6 @@ class UserUpdateView(ProtectQuerysetMixin, LoginRequiredMixin, UpdateView):
|
||||
|
||||
context['profile_form'] = profile_form
|
||||
|
||||
|
||||
return context
|
||||
|
||||
@transaction.atomic
|
||||
|
Loading…
x
Reference in New Issue
Block a user