Using Django 1.7, whenever I perform a makemigrations
, I get a change on one of my models:
(venv) >> python manage.py makemigrations myapp
Migrations for 'myapp':
0005_auto_20141206_1129.py:
- Alter field date on observation
This is due to my Observation class using datetime.today()
:
class Observation(model.Models):
date = models.DateField(default=datetime.datetime.today())
Is there an easy way to avoid creating migration files for this, but at the same time keeping the default of today()
whenever an Observation is created?