#14796: inspectdb producing field names which are Python keywords
------------------------------------------------+---------------------------
Reporter: [email protected] | Owner: nobody
Status: new | Milestone:
Component: django-admin.py inspectdb | Version: 1.2
Resolution: | Keywords:
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------------------+---------------------------
Changes (by ramiro):
* needs_better_patch: => 0
* stage: Unreviewed => Accepted
* needs_tests: => 0
* needs_docs: => 0
Comment:
As suspected, this happens because one transformation made to field names
after the verification against the Python keyword list (namely the
striping of `'_id'` from e.g. `'from_id'`) can result in a `'from'`
introspected model field name. There are a couple of that kind of
transformations.
--
Ticket URL: <http://code.djangoproject.com/ticket/14796#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.