inspectdb producing field names which are Python keywords
|Reported by:||Owned by:||mmcnickle|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Similar to #1328; I had a case where inspectdb produced a model which uses a python keyword as a field in the model class.
- Django: 1.2.3
- Python: 2.6.5
- DB Driver: postgresql_psycopg2
I will attach an SQL file; it is from the Danbooru image server. The table which had the problems is "dmails"; the column is a foreign key column to the table "users".
Change History (9)
comment:1 Changed 6 years ago by
|Patch needs improvement:||unset|
|Triage Stage:||Unreviewed → Accepted|