

@filter_hook
def get_form_datas(self):
    datas = {
        'instance': self.org_obj,
        'initial': self.get_revision(),
    }
    if (self.request_method == 'post'):
        datas.update({
            'data': self.request.POST,
            'files': self.request.FILES,
        })
    return datas

dataset/ETHPy150Open sshwsfc/xadmin/xadmin/plugins/xversion.py BaseRevisionView.get_form_datas/original