#17227: max_digits and decimal_places using "inspectdb"
-------------------------------+--------------------
     Reporter:  anonymous      |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Uncategorized  |    Version:
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 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".

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17227>
Django <https://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.

Reply via email to