From eb5b6cb65def47382aec72f9f0d3ec722f221834 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Doderlein Date: Tue, 13 Aug 2024 16:10:40 +0200 Subject: [PATCH] Typo fix --- apps/member/forms.py | 4 ++-- note_kfet/templates/base.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 {% block title %}{{ title }}{% endblock title %} - {{ request.site.name }} - + {# Favicon #}