摘要: django 文件更新: 文件更新一定要放到最后,否则文件会丢失! 参考https://blog.csdn.net/weixin_33127753/article/details/88227832 from django.core.files.base import ContentFile file 阅读全文
posted @ 2019-11-29 01:14 real-admin 阅读(268) 评论(0) 推荐(0) 编辑
摘要: values_list("gender","id",flat=True) # 这样会报错,只能取一个字段 'flat' is not valid when values_list is called with more than one field. 另一张表通过related_name__属性名( 阅读全文
posted @ 2019-11-29 00:04 real-admin 阅读(142) 评论(0) 推荐(0) 编辑