Opened 16 years ago
Last modified 13 years ago
#9991 closed
manage.py inspectdb guesses TextField on postgres' real column — at Version 1
Reported by: | Jerome Leclanche | Owned by: | nobody |
---|---|---|---|
Component: | django-admin.py inspectdb | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description (last modified by )
Using python manage.py inspectdb outputs a models.TextField type as guess for every 'real' (float4) column when using postgresql (psycopg2). Example:
modifier_float = models.TextField() # This field type is a guess.
Quick fix: Append "700: 'FloatField'" to postgres' introspection.py's data_types_reverse dict. SVN is acting weird and I don't really know django's underlying codebase, so I rather let someone else patch this (or explain why it's intended).
Note:
See TracTickets
for help on using tickets.
(edited description)