def dispatch(self, request, *args, **kwargs):
    self.start()
    url = reverse('processlib:process-detail', kwargs={'pk': self.instance.process.pk})
    try:
        if self.redirect_url_callback:
            url = self.redirect_url_callback(self)
        self.finish()
    except Exception as e:
        logger.exception(e)
        self.error(exception=e)
    return HttpResponseRedirect(url)
def dispatch(self, request, *args, **kwargs):
    self.start()
    url = reverse('processlib:process-detail', kwargs={'pk': self.instance.process.pk})
    try:
        if self.redirect_url_callback:
            url = self.redirect_url_callback(self)
        self.finish()
    except Exception as e:
        logger.exception(e)
        self.error(exception=e)
    return HttpResponseRedirect(url)