Django syncdb error
- by Hulk
/mysite/project4
class notes(models.Model):
created_by = models.ForeignKey(User)
detail = models.ForeignKey(Details)
Details and User are in the same module i.e,/mysite/project1
In project1 models i have defined
class User():
......
class Details():
......
When DB i synced there is an error saying
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'.
How can this be solved..
thanks..