mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
Found a way to avoid strange error for club page
This commit is contained in:
parent
cec3ec8164
commit
4369d9f593
@ -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