'Renders the workflow.'

def render(self):

    workflow_template = template.loader.get_template(self.template_name)
    extra_context = {'workflow': self}
    if self.request.is_ajax():
        extra_context['modal'] = True
    return workflow_template.render(extra_context, self.request)
