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
9dd5de2b
Commit
9dd5de2b
authored
Feb 27, 2019
by
Tobias van der Werff
Browse files
Allow board membership to contain end date
parent
b667cd83
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/activemembers/models.py
View file @
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
...
...
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