Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
7cdd9fd5
Verified
Commit
7cdd9fd5
authored
May 28, 2019
by
Sébastiaan Versteeg
Browse files
Fix capitalisation of birthday field in registration form
parent
6eee70b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/registrations/forms.py
View file @
7cdd9fd5
...
...
@@ -4,6 +4,7 @@ from django.forms import TypedChoiceField
from
django.urls
import
reverse_lazy
from
django.utils
import
timezone
from
django.utils.safestring
import
mark_safe
from
django.utils.text
import
capfirst
from
django.utils.translation
import
ugettext_lazy
as
_
from
utils.snippets
import
datetime_to_lectureyear
...
...
@@ -17,7 +18,7 @@ class BaseRegistrationForm(forms.ModelForm):
widget
=
forms
.
widgets
.
SelectDateWidget
(
years
=
[
year
for
year
in
range
(
timezone
.
now
().
year
-
50
,
timezone
.
now
().
year
-
10
)]),
label
=
_
(
'birthday'
)
label
=
capfirst
(
_
(
'birthday'
)
)
)
privacy_policy
=
forms
.
BooleanField
(
...
...
Luko van der Maas
@lukomaas
mentioned in commit
d3dbf348
·
May 30, 2019
mentioned in commit
d3dbf348
mentioned in commit d3dbf348ee4f740b4389ba86550d02229181c5b4
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment