Skip to content

Commit

Permalink
linted
Browse files Browse the repository at this point in the history
  • Loading branch information
CocoByte committed Oct 24, 2024
1 parent 5250cee commit 5fc0342
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/registrar/forms/portfolio.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class NewMemberForm(forms.ModelForm):
member_access_level = forms.ChoiceField(
label="Select permission",
choices=[("admin", "Admin Access"), ("basic", "Basic Access")],
widget=forms.RadioSelect(attrs={'class': 'usa-radio__input usa-radio__input--tile'}),
widget=forms.RadioSelect(attrs={"class": "usa-radio__input usa-radio__input--tile"}),
required=True,
error_messages={
"required": "Member access level is required",
Expand Down Expand Up @@ -252,10 +252,10 @@ def clean(self):

# Validate the sport based on the selected grade
if permission_level == "True":
#remove the error messages pertaining to basic permission inputs
# remove the error messages pertaining to basic permission inputs
del self.errors["basic_org_domain_request_permissions"]
else:
#remove the error messages pertaining to admin permission inputs
# remove the error messages pertaining to admin permission inputs
del self.errors["admin_org_domain_request_permissions"]
del self.errors["admin_org_members_permissions"]
return cleaned_data

0 comments on commit 5fc0342

Please sign in to comment.