

def init_request(self, object_id, version_id):
    self.detail = self.get_model_view(DetailAdminView, self.model, object_id)
    self.org_obj = self.detail.obj
    self.version = get_object_or_404(Version, pk=version_id, object_id=unicode(self.org_obj.pk))
    self.prepare_form()

dataset/ETHPy150Open sshwsfc/xadmin/xadmin/plugins/xversion.py RevisionView.init_request/original