Commit 3422cc56 authored by Damien Lespiau's avatar Damien Lespiau
Browse files

testresult: Fix the date timestamp to update every time



The intention for that field was to be the time stamp of the last test
result update. Unfortunately, I used the idiom for 'created' time
stamps instead of 'updated' ones.
Signed-off-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
parent 301fe12a
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('patchwork', '0010_test_results_to_cc_list'),
]
operations = [
migrations.AlterField(
model_name='testresult',
name='date',
field=models.DateTimeField(auto_now=True),
),
]
......@@ -644,7 +644,7 @@ class TestResult(models.Model):
revision = models.ForeignKey(SeriesRevision, blank=True, null=True)
patch = models.ForeignKey(Patch, blank=True, null=True)
user = models.ForeignKey(User)
date = models.DateTimeField(default=datetime.datetime.now)
date = models.DateTimeField(auto_now=True)
state = models.SmallIntegerField(choices=STATE_CHOICES)
url = models.URLField(blank=True, null=True)
summary = models.TextField(blank=True, null=True)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment