﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
17227	"max_digits and decimal_places using ""inspectdb"""	anonymous	nobody	"I'm using Oracle and have a table like this:
{{{
CREATE TABLE  ""TEST_TABLE"" 
   (	""NUMBER_2_0"" NUMBER(2,0)
   )
}}}

When I use ""inspectdb"", the generated model looks like:
{{{
class TestTable(models.Model):
    number_2_0 = models.IntegerField(null=True, blank=True)
    class Meta:
        db_table = u'test_table'
}}}

But the field should be a ""models.DecimalField"" with ""max_digits=2"" and ""decimal_places=0""."	Bug	closed	Core (Management commands)		Normal	wontfix			Unreviewed	0	0	0	0	0	0
