﻿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
21905	Add check for default=now() on Date/Time/DateTimeFields	taishi@…	Markus Holtermann	"I'm running a model which contains datetime.now() as default value and django keeps thinking that I altered that field.
So everytime I run migrates I get:
Running migrations:
  No migrations needed.
  Your models have changes that are not yet reflected in a migration, and so won't be applied.
  Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.

If I run makemigrations (once, twice, 20 times) it will always output:
Migrations for 'acb_coins':
  0003_auto_20140129_1947.py:
    - Alter field last_sync on coin

Model:
class Coin(models.Model):
    name = models.CharField(max_length=80)
    short_name = models.CharField(max_length=4)
    rpc_address = models.CharField(max_length=30)
    rpc_port = models.IntegerField(max_length=5)
    balance = models.DecimalField(decimal_places=10, max_digits=15)
    last_sync = models.DateTimeField(default=datetime.now())"	New feature	closed	Core (Other)	1.7-alpha-1	Normal	fixed	check nlsprint14	info@…	Accepted	1	0	0	0	1	0
