(fields.E304) Reverse accessor for ‘xxx.xxx‘ clashes with reverse accessor for ‘xxx‘.HINT:Add or cha

(fields.E304) Reverse accessor for ‘xxx.xxx’ clashes with reverse accessor for ‘xxx’.HINT:Add or change a related_name argument to the definition for ‘xxx.xxx’ or ‘xxx.xxx’

class OnlineBug(CoreModel):functionary = models.ForeignKey(to=settings.AUTH_USER_MODEL,related_query_name='functionary_query',related_name='functionary_query')

修改个related_name就可以了
再执行 python manage makemigrations
就不会报错了,有问题请留言


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部