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
4bcad194
Commit
4bcad194
authored
Jan 31, 2017
by
Joost Rijneveld
Browse files
Merge branch 'fix/board-comparison' into 'master'
Fix comparison of board in 'validate_unique' See merge request
!340
parents
bf800596
adab75eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/activemembers/models.py
View file @
4bcad194
...
...
@@ -144,7 +144,7 @@ class Board(Committee):
super
().
validate_unique
(
*
args
,
**
kwargs
)
for
board
in
Board
.
objects
.
filter
(
since__year
=
self
.
since
.
year
,
until__year
=
self
.
until
.
year
):
if
board
is
not
self
:
if
board
!=
self
:
raise
ValidationError
({
'since'
:
_
(
'A board already exists for those years'
),
'until'
:
_
(
'A board already exists for those years'
)})
...
...
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