summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/toaster/orm/migrations/0006_customimagerecipe_last_updated.py19
-rw-r--r--bitbake/lib/toaster/orm/models.py1
2 files changed, 20 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/orm/migrations/0006_customimagerecipe_last_updated.py b/bitbake/lib/toaster/orm/migrations/0006_customimagerecipe_last_updated.py
new file mode 100644
index 0000000000..b7a301b541
--- /dev/null
+++ b/bitbake/lib/toaster/orm/migrations/0006_customimagerecipe_last_updated.py
@@ -0,0 +1,19 @@
1# -*- coding: utf-8 -*-
2from __future__ import unicode_literals
3
4from django.db import migrations, models
5
6
7class Migration(migrations.Migration):
8
9 dependencies = [
10 ('orm', '0005_auto_20160118_1055'),
11 ]
12
13 operations = [
14 migrations.AddField(
15 model_name='customimagerecipe',
16 name='last_updated',
17 field=models.DateTimeField(default=None, null=True),
18 ),
19 ]
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index 9bfc00d667..ee8f1f7166 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -1446,6 +1446,7 @@ class CustomImageRecipe(Recipe):
1446 search_allowed_fields = ['name'] 1446 search_allowed_fields = ['name']
1447 base_recipe = models.ForeignKey(Recipe, related_name='based_on_recipe') 1447 base_recipe = models.ForeignKey(Recipe, related_name='based_on_recipe')
1448 project = models.ForeignKey(Project) 1448 project = models.ForeignKey(Project)
1449 last_updated = models.DateTimeField(null=True, default=None)
1449 1450
1450 def get_last_successful_built_target(self): 1451 def get_last_successful_built_target(self):
1451 """ Return the last successful built target object if one exists 1452 """ Return the last successful built target object if one exists