Commit 771d2b88 authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg

Change behaviour of starting year field in registrations

parent 851af8bb
......@@ -38,7 +38,7 @@ class BaseRegistrationForm(forms.ModelForm):
class MemberRegistrationForm(BaseRegistrationForm):
"""Form for member registrations"""
this_year = datetime_to_lectureyear(timezone.now())
this_year = timezone.now().year
years = reversed([(x, "{} - {}".format(x, x + 1)) for x in
range(this_year - 20, this_year + 2)])
......@@ -46,7 +46,9 @@ class MemberRegistrationForm(BaseRegistrationForm):
choices=years,
coerce=int,
empty_value=this_year,
required=False
required=False,
help_text=_('What lecture year did you start '
'studying at Radboud University?')
)
class Meta:
......
This diff was suppressed by a .gitattributes entry.
......@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-08-15 20:07+0200\n"
"PO-Revision-Date: 2019-08-15 20:07+0200\n"
"POT-Creation-Date: 2019-09-19 16:08+0200\n"
"PO-Revision-Date: 2019-09-19 16:09+0200\n"
"Last-Translator: Thom Wiggers <thom@thomwiggers.nl>\n"
"Language-Team: \n"
"Language: nl\n"
......@@ -116,6 +116,10 @@ msgstr "verjaardag"
msgid "I accept the <a href=\"{}\">privacy policy</a>."
msgstr "Ik accepteer het <a href=\"{}\">privacybeleid</a>."
#: forms.py
msgid "What lecture year did you start studying at Radboud University?"
msgstr "Welk collegejaar begon je met studeren aan de Radboud Universiteit?"
#: forms.py
msgid "I am an employee of iCIS"
msgstr "Ik ben een medewerker van iCIS"
......
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