layerindex/models.py: Branch model fix inital_data fixture

Add default = datetime.now attr to updated field of Branch
model because it fails when try to insert inital data with NULL.

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
This commit is contained in:
Aníbal Limón 2014-12-08 16:07:53 -06:00 committed by Paul Eggleton
parent 40d05f928c
commit 6ac4e8fbb5

View File

@ -20,7 +20,7 @@ class Branch(models.Model):
short_description = models.CharField(max_length=50, blank=True)
sort_priority = models.IntegerField(blank=True, null=True)
updated = models.DateTimeField(auto_now = True)
updated = models.DateTimeField(auto_now = True, default = datetime.now)
class Meta:
verbose_name_plural = "Branches"