Commit 448f5ff4 authored by Sli's avatar Sli

Merge branch 'com' into 'master'

com: fix error 500 when editing poster with com admin

See merge request !242
parents 5482f117 2da0560e
Pipeline #2050 passed with stage
in 29 minutes and 53 seconds
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment