From 4e3c32eb5e5729d055bceedcda04380a1dd8c093 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 13 Sep 2021 19:28:15 +0200 Subject: [PATCH] Linting Signed-off-by: Yohann D'ANELLO --- apps/wei/forms/__init__.py | 2 +- apps/wei/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/wei/forms/__init__.py b/apps/wei/forms/__init__.py index 1125ab3c..10765752 100644 --- a/apps/wei/forms/__init__.py +++ b/apps/wei/forms/__init__.py @@ -5,6 +5,6 @@ from .registration import WEIForm, WEIRegistrationForm, WEIMembership1AForm, WEI from .surveys import WEISurvey, WEISurveyInformation, WEISurveyAlgorithm, CurrentSurvey __all__ = [ - 'WEIForm', 'WEIRegistrationForm', 'WEIMembesrhip1AForm', 'WEIMembershipForm', 'BusForm', 'BusTeamForm', + 'WEIForm', 'WEIRegistrationForm', 'WEIMembership1AForm', 'WEIMembershipForm', 'BusForm', 'BusTeamForm', 'WEISurvey', 'WEISurveyInformation', 'WEISurveyAlgorithm', 'CurrentSurvey', ] diff --git a/apps/wei/views.py b/apps/wei/views.py index 23ab8485..0f385d94 100644 --- a/apps/wei/views.py +++ b/apps/wei/views.py @@ -720,7 +720,7 @@ class WEIUpdateRegistrationView(ProtectQuerysetMixin, LoginRequiredMixin, Update del membership_form.fields["first_name"] del membership_form.fields["last_name"] del membership_form.fields["bank"] - for field_name, field in list(membership_form.fields.items()): + for field_name, _field in list(membership_form.fields.items()): if not PermissionBackend.check_perm( self.request, "wei.change_weimembership_" + field_name, self.object.membership): del membership_form.fields[field_name]