摘要: ForeignKey(ForeignObject) blog = models.ForeignKey( to="Blog", to_field="nid", on_delete=models.DO_NOTHING) # 外键关联博客,一个博客站点可以有多个分类 字段 to, # 要进行关联的表名 t 阅读全文
posted @ 2021-08-03 14:40 Οo白麒麟оΟ 阅读(152) 评论(0) 推荐(0) 编辑