Skip to content
GitLab
Menu
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
4560ba1a
Verified
Commit
4560ba1a
authored
Mar 30, 2017
by
Sébastiaan Versteeg
Browse files
Make sure boards are always active so that they can create events etc
parent
280153a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/activemembers/models.py
View file @
4560ba1a
...
@@ -137,6 +137,10 @@ class Board(Committee):
...
@@ -137,6 +137,10 @@ class Board(Committee):
(
'board_wiki'
,
_
(
"Access the board wiki"
)),
(
'board_wiki'
,
_
(
"Access the board wiki"
)),
)
)
def
save
(
self
,
*
args
,
**
kwargs
):
self
.
active
=
True
super
().
save
(
*
args
,
**
kwargs
)
def
get_absolute_url
(
self
):
def
get_absolute_url
(
self
):
return
reverse
(
'activemembers:board'
,
args
=
[
str
(
self
.
since
.
year
),
return
reverse
(
'activemembers:board'
,
args
=
[
str
(
self
.
since
.
year
),
str
(
self
.
until
.
year
)])
str
(
self
.
until
.
year
)])
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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