primary_key表示unique = True.所以,正如警告所说,你可能应该使用OneToOneField

posted on 2020-12-11 11:29  锋齐叶落  阅读(430)  评论(0编辑  收藏  举报