Capitalized model name causes problem with many to many relation in postgres
|Reported by:||aaron@…||Owned by:||adrian|
|Component:||Database layer (models, ORM)||Version:||master|
|Severity:||Keywords:||m2m capitalization postgres table name|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||yes|
In [source:django/trunk/django/db/backends/postgresql/base.py@r5609#L274 postgresql/base.py line 274]
there is an SQL table name problem. Many to many table references with capitalization is not being quoted properly.
This prevented me from loading my fixtures.
Attached is my modified and outdated base.py file, with the fix at line 244.
Hope this helps...
Change History (4)
Changed 9 years ago by aaron@…
comment:1 Changed 9 years ago by SmileyChris
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset