Commit aca5a3b3 authored by Thom Wiggers's avatar Thom Wiggers 📐
Browse files

Merge branch 'fix/registrations-programme-supporters' into 'master'

Fix comparison in registration model for year and programme

Closes #693

See merge request !934
parents 4ae90c69 16d1be2a
...@@ -269,12 +269,12 @@ class Registration(Entry): ...@@ -269,12 +269,12 @@ class Registration(Entry):
'username': _('A user with that username already exists.')}) 'username': _('A user with that username already exists.')})
if (self.starting_year is None and if (self.starting_year is None and
self.membership_type is not Membership.SUPPORTER): self.membership_type != Membership.SUPPORTER):
errors.update({ errors.update({
'starting_year': _('This field is required.')}) 'starting_year': _('This field is required.')})
if (self.programme is None and if (self.programme is None and
self.membership_type is not Membership.SUPPORTER): self.membership_type != Membership.SUPPORTER):
errors.update({ errors.update({
'programme': _('This field is required.')}) 'programme': _('This field is required.')})
......
Supports Markdown
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