﻿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
7285	inspectdb outputs invalid python variable when it encounters a dash	redalastor@…	nobody	"When inspectdb encounters a field with a dash, it outputs it as a variable name which is invalid in python. For instance, when i ran it, I got the line:

buy-back_amount = models.FloatField(null=True, blank=True)

which I had to manually change to:

buy_back_amount = models.FloatField(null=True, blank=True, db_column=""buy-back"")

This was found in the SVN version of django with a mysql database."		new	Core (Management commands)	dev			inspectdb		Unreviewed	0	0	0	0	0	0
