diff --git a/core/views/page.py b/core/views/page.py index 7fd48308..14d50187 100644 --- a/core/views/page.py +++ b/core/views/page.py @@ -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