mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-11-27 02:43:01 +00:00
Linting
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
parent
ef118c2445
commit
4e3c32eb5e
@ -5,6 +5,6 @@ from .registration import WEIForm, WEIRegistrationForm, WEIMembership1AForm, WEI
|
|||||||
from .surveys import WEISurvey, WEISurveyInformation, WEISurveyAlgorithm, CurrentSurvey
|
from .surveys import WEISurvey, WEISurveyInformation, WEISurveyAlgorithm, CurrentSurvey
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
'WEIForm', 'WEIRegistrationForm', 'WEIMembesrhip1AForm', 'WEIMembershipForm', 'BusForm', 'BusTeamForm',
|
'WEIForm', 'WEIRegistrationForm', 'WEIMembership1AForm', 'WEIMembershipForm', 'BusForm', 'BusTeamForm',
|
||||||
'WEISurvey', 'WEISurveyInformation', 'WEISurveyAlgorithm', 'CurrentSurvey',
|
'WEISurvey', 'WEISurveyInformation', 'WEISurveyAlgorithm', 'CurrentSurvey',
|
||||||
]
|
]
|
||||||
|
@ -720,7 +720,7 @@ class WEIUpdateRegistrationView(ProtectQuerysetMixin, LoginRequiredMixin, Update
|
|||||||
del membership_form.fields["first_name"]
|
del membership_form.fields["first_name"]
|
||||||
del membership_form.fields["last_name"]
|
del membership_form.fields["last_name"]
|
||||||
del membership_form.fields["bank"]
|
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(
|
if not PermissionBackend.check_perm(
|
||||||
self.request, "wei.change_weimembership_" + field_name, self.object.membership):
|
self.request, "wei.change_weimembership_" + field_name, self.object.membership):
|
||||||
del membership_form.fields[field_name]
|
del membership_form.fields[field_name]
|
||||||
|
Loading…
Reference in New Issue
Block a user