Validation error with syncdb
|Reported by:||SmileyChris||Owned by:||adrian|
|Component:||Core (Management commands)||Version:|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
I have an Email model linked to a Contact model (contact=ForeignKey(Contact) in the Email model).
The Contact model has an EmailField named email.
Syncdb is complaining that:
Reverse query name for field 'contact' clashes with field 'Contact.email'."
If my understanding is correct, the reverse query name will be email_set, not email so this shouldn't be a clash, should it? My work around at the moment is to actually set reverse_query='email_set', syncdb stops complaining but this is (in my understanding) the default reverse query name in this case anyway so it's a bit weird.
(Just to be clear, the Email model is an actual email and the email field is an email address so they do serve seperate purposes)