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
AE UTBM
Sith
Commits
2da0560e
Verified
Commit
2da0560e
authored
Oct 02, 2019
by
Sli
Browse files
com: fix error 500 when editing poster with com admin
parent
fd5cd56f
Pipeline
#2040
passed with stage
in 25 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
com/views.py
View file @
2da0560e
...
...
@@ -739,8 +739,7 @@ class PosterEditBaseView(UpdateView):
def
get_context_data
(
self
,
**
kwargs
):
kwargs
=
super
(
PosterEditBaseView
,
self
).
get_context_data
(
**
kwargs
)
if
not
self
.
request
.
user
.
is_com_admin
:
kwargs
[
"club"
]
=
self
.
club
kwargs
[
"club"
]
=
kwargs
.
get
(
"club"
,
self
.
club
)
return
kwargs
def
form_valid
(
self
,
form
):
...
...
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