diff --git a/apps/member/forms.py b/apps/member/forms.py index 2e39fa8..62e5525 100644 --- a/apps/member/forms.py +++ b/apps/member/forms.py @@ -20,11 +20,11 @@ from .models import Profile, Club, Membership class UserForm(forms.ModelForm): - def _get_validation_exclusions(self): + def get_validation_exclusions(self): # Django usernames can only contain letters, numbers, @, ., +, - and _. # We want to allow users to have uncommon and unpractical usernames: # That is their problem, and we have normalized aliases for us. - return super()._get_validation_exclusions() + ["username"] + return super().get_validation_exclusions() + ["username"] class Meta: model = User diff --git a/note_kfet/templates/base.html b/note_kfet/templates/base.html index 9da6c49..457bcbc 100644 --- a/note_kfet/templates/base.html +++ b/note_kfet/templates/base.html @@ -11,7 +11,7 @@ SPDX-License-Identifier: GPL-3.0-or-later