Name clashes in ManyToMany
|Reported by:||pkoch||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||master|
|Severity:||Keywords:||ManyToMany name clash|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
When both sides of a ManyToMany relation are of different classes and have the same object_name, a clash occours.
- Create two apps, legacy and next_gen,
- Create a Model with the same name on both,
- Create a ManyToMany between them, and
- Run manage.py syncdb
My first take on a solution is in the attached patch.
Change History (10)
comment:1 Changed 8 years ago by
|Patch needs improvement:||set|
|Triage Stage:||Unreviewed → Accepted|