user_image
By  蔷薇-Nina    On   2018年3月12日 22:32

为什么models.OneToOneField(to=User),若加上参数to_field=User.name则报错?(注:User.name已设为唯一约束)