

def revisionform_view(self, request, version, template_name, extra_context=None):
    try:
        with transaction.atomic():
            version.revision.revert(delete=True)
            with self._create_revision(request):
                response = self.changeform_view(request, version.object_id, request.path, extra_context)
                if ((request.method == 'POST') and (response.status_code == 302)):
                    self.revision_context_manager.set_comment((_('Reverted to previous version, saved on %(datetime)s') % {
                        'datetime': localize(version.revision.date_created),
                    }))
                else:
                    response.template_name = request
                    response.render()
                    raise RollBackRevisionView
    except RollBackRevisionView:
        pass
    return response

dataset/ETHPy150Open etianen/django-reversion/src/reversion/admin.py VersionAdmin.revisionform_view/VarMisuse@133/187 `template_name`->`request`