summaryrefslogtreecommitdiffstats
path: root/cvp/opnfv_testapi/resources/test_models.py
diff options
context:
space:
mode:
authorgrakiss <grakiss.wanglei@huawei.com>2017-10-19 23:50:18 -0400
committergrakiss <grakiss.wanglei@huawei.com>2017-10-19 23:50:18 -0400
commit3617b6958c4c44678d64c05e669b50e427fc45f8 (patch)
tree81691a81384000128056377f2a64d3d3fceaa589 /cvp/opnfv_testapi/resources/test_models.py
parent54bc0f28fd9b5ec6675401d6c3322b30e72e7d9c (diff)
[web-cvp]Additional columns in ‘My Results’
JIRA: DOVETAIL-532 1. original filename 2. user editable label Change-Id: I1566cecb3d8ceacc14167bb2fb7fa41508f293be Signed-off-by: grakiss <grakiss.wanglei@huawei.com>
Diffstat (limited to 'cvp/opnfv_testapi/resources/test_models.py')
-rw-r--r--cvp/opnfv_testapi/resources/test_models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cvp/opnfv_testapi/resources/test_models.py b/cvp/opnfv_testapi/resources/test_models.py
index 41fa6852..24b4d17b 100644
--- a/cvp/opnfv_testapi/resources/test_models.py
+++ b/cvp/opnfv_testapi/resources/test_models.py
@@ -53,7 +53,7 @@ class Test(models.ModelBase):
"""
def __init__(self, _id=None, owner=None, results=[],
public="false", review="false", status="private",
- shared=[], trust_indicator=None):
+ shared=[], filename="", label="", trust_indicator=None):
self._id = _id
self.owner = owner
self.results = results
@@ -62,6 +62,8 @@ class Test(models.ModelBase):
self.upload_date = datetime.now()
self.status = status
self.shared = shared
+ self.filename = filename
+ self.label = label
@swagger.model()