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
448f5ff4
Commit
448f5ff4
authored
Oct 06, 2019
by
Sli
Browse files
Merge branch 'com' into 'master'
com: fix error 500 when editing poster with com admin See merge request ae/Sith!242
parents
5482f117
2da0560e
Pipeline
#2050
passed with stage
in 29 minutes and 53 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
com/views.py
View file @
448f5ff4
...
...
@@ -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