﻿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
16536	inspectdb with numerical column names	danodonovan	teraom	"inspectdb produces model fields with numerical values for fieldnames when running with a (MySQL at least) DB with numerical column labels. For example, sql with column names 1 and 2 results in invalid python code:


{{{
    1 = models.CharField()
    2 = models.CharField()
}}}


I would submit a patch, but I don't want to suggest a default prefix name for these fields without advice. Would suggest 'number_%d' % db_column or similar. "	Bug	closed	Core (Management commands)	dev	Normal	fixed	inspectdb	dan.odonovan@…	Ready for checkin	1	0	0	0	0	0
