﻿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
2425	[patch] 'manage.py sql polls' fail with no error if invalid model	jon@…	Adrian Holovaty	"Hi,

I just run throught the first part of the tutorial, until I get stuck for a few minutes with the {{{python manage.py sql polls}}} :
{{{
$ python manage.py sql polls
BEGIN;
COMMIT;
$
}}}

The model for this setup is :
{{{
from django.db import models

class Poll(models.Model):
    question = models.CharField(maxlength=200)
    pub_date = models.DateiTimeField('date published')

class Choice(models.Model):
    poll = models.ForeignKey(Poll)
    choice = models.CharField(maxlength=200)
    votes = models.IntergerField()
}}}

Of course, it is wrong, since 'DateiTimeField' and 'IntergerField' are mispelled, which is reported by {{{python manage.py validate polls}}} :
{{{
$ python manage.py validate polls
mysite.polls: 'module' object has no attribute 'DateiTimeField'
1 error found.
$ python manage.py validate polls
mysite.polls: 'module' object has no attribute 'IntergerField'
1 error found.
$ python manage.py validate polls
0 errors found.
$
}}}

But, I think {{{python manage.py sql}}} should report the error too, or at least give a hint."	defect	closed	Tools	dev	normal	fixed		dev@…	Unreviewed	1	0	0	0	0	0
