Merge branch 'bugfix' into 'master'

Fix error when editing poster while being admin

See merge request ae/Sith!245
This commit is contained in:
2019-10-09 18:11:05 +02:00

View File

@@ -739,7 +739,8 @@ class PosterEditBaseView(UpdateView):
def get_context_data(self, **kwargs):
kwargs = super(PosterEditBaseView, self).get_context_data(**kwargs)
kwargs["club"] = kwargs.get("club", self.club)
if hasattr(self, "club"):
kwargs["club"] = self.club
return kwargs
def form_valid(self, form):