Merge branch 'clubs' into 'master'

Found a way to avoid strange error for club page

See merge request ae/Sith!122
This commit is contained in:
Antoine Bartuccio 2017-10-06 17:50:59 +02:00
commit 8492903a39

View File

@ -214,7 +214,7 @@ class PageEditView(PageEditViewBase):
def dispatch(self, request, *args, **kwargs):
res = super(PageEditView, self).dispatch(request, *args, **kwargs)
if self.object.page.need_club_redirection:
if self.object and self.object.page.need_club_redirection:
return redirect('club:club_edit_page', club_id=self.object.page.club.id)
return res