I am trying to use different open source apps in my project. Problem is that there is a same Model name used by two different apps with their own model definition.
I tried using:
class Meta:
db_table = "db_name"
but it didn't work. I am still getting field name clash error at syncdb. Any suggestions.
Update
I am actually trying to integrate Satchmo with Pinax. And the error is:
Error: One or more models did not validate:
contact.contact: Accessor for field 'user' clashes with related m2m field 'User.contact_set'. Add a related_name argument to the definition for 'user'.
friends.contact: Accessor for m2m field 'users' clashes with related field User.contact_set'. Add a related_name argument to the definition for 'users'.
You are right, table names are already unique. I analyzed the model and the Model 'Contact' is in two models of two different apps. When I comment out one of these models, it works fine.
May be the error is there because both apps are in PYTHON_PATH and when other app defines the its model with same name the clash occurs.