Verified Commit 7cdd9fd5 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix capitalisation of birthday field in registration form

parent 6eee70b9
...@@ -4,6 +4,7 @@ from django.forms import TypedChoiceField ...@@ -4,6 +4,7 @@ from django.forms import TypedChoiceField
from django.urls import reverse_lazy from django.urls import reverse_lazy
from django.utils import timezone from django.utils import timezone
from django.utils.safestring import mark_safe from django.utils.safestring import mark_safe
from django.utils.text import capfirst
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _
from utils.snippets import datetime_to_lectureyear from utils.snippets import datetime_to_lectureyear
...@@ -17,7 +18,7 @@ class BaseRegistrationForm(forms.ModelForm): ...@@ -17,7 +18,7 @@ class BaseRegistrationForm(forms.ModelForm):
widget=forms.widgets.SelectDateWidget(years=[ widget=forms.widgets.SelectDateWidget(years=[
year for year in range(timezone.now().year - 50, year for year in range(timezone.now().year - 50,
timezone.now().year - 10)]), timezone.now().year - 10)]),
label=_('birthday') label=capfirst(_('birthday'))
) )
privacy_policy = forms.BooleanField( privacy_policy = forms.BooleanField(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment