'Deleted view needs to access this method without a decorator,
therefore it is separate.'

def dispatch1(self, request, article, *args, **kwargs):

    urlpath = kwargs.get(u'urlpath', None)
    self.next = u''
    self.cannot_delete_root = False
    if (urlpath and urlpath.parent):
        self.next = reverse(u'wiki:get', kwargs={u'path': urlpath.parent.path})
    elif urlpath:
        self.cannot_delete_root = True
    else:
        for art_obj in article.articleforobject_set.filter(is_mptt=True):
            if art_obj.content_object.parent:
                self.next = reverse(u'wiki:get', kwargs={u'article_id': art_obj.content_object.parent.article.id})
            else:
                self.cannot_delete_root = True
    return super(Delete, self).dispatch(request, article, *args, **kwargs)
