﻿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
12460	inspectdb and field names ending with underscores	3gun <mihail.lukin@…>	kgibula	"Hi,

There is a field named 'type_' in mysql table. Inspectdb inspects it as 'type_' and model does not validate. I suggest removing underscores from model field name and specifying column_db argument in field constructor.

< type_ = models.CharField(max_length=90, db_column='type_')
> type = models.CharField(max_length=90, db_column='type_')

Sorry for posting without login. I've forgot my password and didn't find restoring feature on this site."	Bug	closed	Core (Management commands)	dev	Normal	fixed	inspectdb underscore characters digits		Accepted	1	0	0	0	0	0
