mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-23 00:01:16 +00:00
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:
commit
8492903a39
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user