Verified Commit 2da0560e authored by Sli's avatar 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
......@@ -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):
......
Supports Markdown
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