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
adab75eb
Commit
adab75eb
authored
Jan 30, 2017
by
Sébastiaan Versteeg
Browse files
Fix comparison of board in 'validate_unique'
parent
a189fe5e
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/activemembers/models.py
View file @
adab75eb
...
...
@@ -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