mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
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:
parent
40d05f928c
commit
6ac4e8fbb5
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user