Verified Commit 16d1be2a authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Fix comparison in registration model for year and programme

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