Commit 8a48fe8f authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Merge branch '416-board-membership-cannot-have-end-dates' into 'master'

Allow board membership to contain end date

Closes #416

See merge request !1183
parents 53ff95d4 9dd5de2b
......@@ -304,13 +304,6 @@ class MemberGroupMembership(models.Model, metaclass=ModelTranslateMeta):
raise ValidationError(
{'since': _("Start date can't be after group end date")})
try:
if self.until and self.group.board:
raise ValidationError(
{'until': _("End date cannot be set for boards")})
except Board.DoesNotExist:
pass
def validate_unique(self, *args, **kwargs):
super().validate_unique(*args, **kwargs)
# Check if a group has more than one chair
......
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