Add a query_keyvals script to the CLI to allow command-line queries of
test keyval data.
Risk: Medium
Visibility: Should not affect any other interfaces, add a new
cli/query_keyvals script.
Signed-off-by: John Admanski <jadmanski@google.com>
git-svn-id: http://test.kernel.org/svn/autotest/trunk@2571 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/new_tko/tko/models.py b/new_tko/tko/models.py
index b16a3c3..27b02a9 100644
--- a/new_tko/tko/models.py
+++ b/new_tko/tko/models.py
@@ -177,7 +177,7 @@
db_table = 'test_attributes'
-class IterationAttribute(dbmodels.Model):
+class IterationAttribute(dbmodels.Model, model_logic.ModelExtensions):
# see comment on TestAttribute regarding primary_key=True
test = dbmodels.ForeignKey(Test, db_column='test_idx', primary_key=True)
iteration = dbmodels.IntegerField()
@@ -188,8 +188,9 @@
db_table = 'iteration_attributes'
-class IterationResult(dbmodels.Model):
- test = dbmodels.ForeignKey(Test, db_column='test_idx')
+class IterationResult(dbmodels.Model, model_logic.ModelExtensions):
+ # see comment on TestAttribute regarding primary_key=True
+ test = dbmodels.ForeignKey(Test, db_column='test_idx', primary_key=True)
iteration = dbmodels.IntegerField()
attribute = dbmodels.CharField(maxlength=90)
value = dbmodels.FloatField(null=True, max_digits=12, decimal_places=31,