from django.db import models

try:
    from django.utils.timezone import now
except ImportError:
    from datetime.datetime import now


class Migration(models.Model):
    
    migration_label = models.CharField(max_length=200)
    date_created = models.DateTimeField(default=now)
    content = models.TextField()
    scm_version = models.CharField(max_length=50, null=True, blank=True)
    
    def __unicode__(self):
        return unicode("%s [%s]" % (self.migration_label, self.scm_version))

from django.db import models

try:
    from django.utils.timezone import now
    now; # poor-man's pyflakes ignore
except ImportError:
    from datetime.datetime import now


class Migration(models.Model):
    
    migration_label = models.CharField(max_length=200)
    date_created = models.DateTimeField(default=now)
    content = models.TextField()
    scm_version = models.CharField(max_length=50, null=True, blank=True)
    
    def __unicode__(self):
        return unicode("%s [%s]" % (self.migration_label, self.scm_version))

Add a pyflakes ignore