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
1289,Inspectdb improvement of mysql extra_params for FloatFields and IntegerFields,gandalf@…,adrian,"When inspectdb is used with mysql it can also figure out the number of decimal places for FloatFields and integer places for IntegerFields.
the addition to inspectdb in manager.py is:
{{{
if field_type == 'FloatField':
extra_params['decimal_places'] = row[5]
if field_type =='IntegerField':
extra_params['max_digits'] = row[3]
}}}
I was not able to figure out how to get max_digits for FloatFields, suggestions welcome.",enhancement,closed,Core (Management commands),,normal,fixed,,,Unreviewed,0,0,0,0,,