Description

While playing with Django 1.7 I noticed there was an issue with some generated migrations.

I had a model to which I added:

some_date = models.DateField()

I ran the makemigration and it prompted me to enter a default value:

$ python manage.py makemigrations
You are trying to add a non-nullable field 'some_date' to post without a default;
we can't do that (the database needs something to populate existing rows).
Please select a fix:
1) Provide a one-off default now (will be set on all existing rows)
2) Quit, and let me add a default in models.py
Select an option: 1
Please enter the default value now, as valid Python
The datetime module is available, so you can do e.g. datetime.date.today()
>>> datetime.date.today()
Migrations for 'blog':
0006_post_some_date.py:
- Add field some_date to post