2017年4月21日

django 将model转换为字典

摘要: from django.forms.models import model_to_dict from projects.models import ProjectInformation site = ProjectInformation.objects.get(id=6) dict = model_to_dict(site) dict {'CRFmethod': '', 'EDCpro... 阅读全文

posted @ 2017-04-21 11:53 星河赵 阅读(4964) 评论(0) 推荐(0) 编辑

导航