/mysite/project4
class notes(models.Model):
created_by = models.ForeignKey(User)
detail = models.ForeignKey(Details)
详细信息和用户位于同一模块中,即 /mysite/project1 在我定义的 project1 模型中
class User():
......
class Details():
......
当我同步数据库时,出现错误提示
Error: One or more models did not validate:
project4: Accessor for field 'detail' clashes with related field . Add a related_name argument to the definition for 'detail'.
这个怎么解决。。
谢谢..