Skip to content

Commit

Permalink
pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit committed Jun 11, 2024
1 parent fba742f commit 0a8d209
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/newuser/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class NewUserForm(forms.Form):
validators=[validate_username_chars, validate_username_not_in_use]
)
password = forms.CharField(widget=forms.PasswordInput())
#enroll_jobs = forms.BooleanField(required=False, label="Jobs@ List Opt-in")
# enroll_jobs = forms.BooleanField(required=False, label="Jobs@ List Opt-in")
agree_rules = forms.BooleanField(required=True)

def clean(self):
Expand Down
4 changes: 2 additions & 2 deletions apps/newuser/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ def _make_newuser(request, form, context):
"""Creates a new user in LDAP and runs config_newuser
if config_newuser fails, the user account is deleted to prevent the user
account from being in limbo."""
#enroll_jobs = "true" if form.cleaned_data["enroll_jobs"] else "false"
#disabling temporarily before the mailman3 migration
# enroll_jobs = "true" if form.cleaned_data["enroll_jobs"] else "false"
# disabling temporarily before the mailman3 migration
enroll_jobs = "false"
success, uid = create_new_user(
form.cleaned_data["username"],
Expand Down

0 comments on commit 0a8d209

Please sign in to comment.