﻿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
22475	model change with DateTime field	niki75@…	nobody	"I created a Model class with several field. next I added a models.DateTimeField field.
Next I just 
python manage.py makemigrations [OK]

next I tried with:
python manage.py migrate
but I received the following error:
    field=models.DateTimeField(default=date(2014, 4, 18)),
NameError: name 'date' is not defined

I see in the migration file the import to datetime is present:
import datetime

but in the line where is defined the date is missing datetime.date
    field=models.DateTimeField(default=datetime.date(2014, 4, 18)),

I modified on this way and now it works.



"	Bug	closed	Migrations	1.7-beta-1	Normal	needsinfo	datetime		Unreviewed	1	0	0	0	0	0
