aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-02-23 17:19:40 +0000
committerMichael Wood <michael.g.wood@intel.com>2015-02-24 12:23:51 +0000
commite9c57c0bdc6c75ee2776f704ddcbd70121fc960a (patch)
tree023597166f4371bcd34e1a9a2b0db42300bb0dbb
parenta9266f58351c32270dbe5d3905be84a24acbdc20 (diff)
downloaderror-report-web-e9c57c0bdc6c75ee2776f704ddcbd70121fc960a.tar.gz
error-report-web-e9c57c0bdc6c75ee2776f704ddcbd70121fc960a.tar.bz2
error-report-web-e9c57c0bdc6c75ee2776f704ddcbd70121fc960a.zip
migrations: Add new field for link back
This optional field is used to add link back information for errors where the build information is accessible such as from a CI system. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
-rw-r--r--Post/migrations/0002_build_link_back.py20
-rw-r--r--Post/migrations/__init__.py0
-rw-r--r--Post/models.py1
3 files changed, 21 insertions, 0 deletions
diff --git a/Post/migrations/0002_build_link_back.py b/Post/migrations/0002_build_link_back.py
new file mode 100644
index 0000000..aab8d23
--- /dev/null
+++ b/Post/migrations/0002_build_link_back.py
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import models, migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('Post', '0001_initial'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='build',
+ name='LINK_BACK',
+ field=models.TextField(max_length=300, null=True, blank=True),
+ preserve_default=True,
+ ),
+ ]
diff --git a/Post/migrations/__init__.py b/Post/migrations/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/Post/migrations/__init__.py
diff --git a/Post/models.py b/Post/models.py
index 51dc499..821829a 100644
--- a/Post/models.py
+++ b/Post/models.py
@@ -22,6 +22,7 @@ class Build(models.Model):
TARGET_SYS = models.CharField(max_length=200)
NAME = models.CharField(max_length=50)
EMAIL = models.CharField(max_length=50)
+ LINK_BACK = models.TextField(max_length=300, blank=True, null=True)
class BuildFailure(models.Model):
TASK = models.CharField(max_length=200)