#9991: manage.py inspectdb guesses TextField on postgres' real column ------------------------------------+--------------------------------------- Reporter: Adys | Owner: nobody Status: new | Milestone: Component: Uncategorized | Version: SVN Resolution: | Keywords: Stage: Unreviewed | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | ------------------------------------+--------------------------------------- Changes (by ramiro):
* needs_better_patch: => 0 * needs_tests: => 0 * needs_docs: => 0 Old description: > 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). New description: 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). Comment: (edited description) -- Ticket URL: <http://code.djangoproject.com/ticket/9991#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 django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---