• Home
  • Raw
  • Download

Lines Matching refs:models

3 from django.db import models as dbmodels
6 from autotest_lib.frontend.afe import models as afe_models, readonly_connection
7 from autotest_lib.frontend.tko import models, tko_rpc_utils
15 models.TestView.list_objects(filter_data))
19 return models.TestView.query_count(filter_data)
47 query = models.TestView.objects.get_query_set_with_joins(filter_data)
49 query = models.TestView.query_objects(filter_data, initial_query=query,
51 count_alias, count_sql = models.TestView.objects.get_count_sql(query)
55 query = models.TestView.apply_presentation(query, filter_data)
68 query = models.TestView.objects.get_query_set_with_joins(filter_data)
69 query = models.TestView.query_objects(filter_data, initial_query=query)
70 return models.TestView.objects.get_num_groups(query, group_by)
98 initial_query = models.TestView.objects.get_query_set_with_joins(
100 query = models.TestView.query_objects(filter_data,
106 models.TestView.objects.get_key_on_this_table('test_idx')})
107 query = models.TestView.apply_presentation(query, filter_data)
136 query = models.TestView.query_objects(filter_data)
184 test_views = models.TestView.list_objects(filter_data)
186 tests_by_id = models.Test.objects.in_bulk([test_view['test_idx']
189 models.Test.objects.populate_relationships(tests, models.TestAttribute,
191 models.Test.objects.populate_relationships(tests, models.IterationAttribute,
193 models.Test.objects.populate_relationships(tests, models.IterationResult,
195 models.Test.objects.populate_relationships(tests, models.TestLabel,
198 jobs_by_id = models.Job.objects.in_bulk([test_view['job_idx']
201 models.Job.objects.populate_relationships(jobs, models.JobKeyval,
289 test_query = models.TestView.objects.filter(q).values(
334 return models.TestLabel.add_object(name=name, description=description).id
338 models.TestLabel.smart_get(label_id).update_object(data)
342 models.TestLabel.smart_get(label_id).delete()
347 models.TestLabel.list_objects(filter_data))
351 label_ids = models.TestView.objects.query_test_label_ids(test_filter_data)
352 labels = models.TestLabel.list_objects({'id__in' : label_ids})
357 test_ids = models.TestView.objects.query_test_ids(test_filter_data)
358 models.TestLabel.smart_get(label_id).tests.add(*test_ids)
362 label = models.TestLabel.smart_get(label_id)
370 test_ids = models.TestView.objects.query_test_ids(test_filter_data)
385 test_ids = models.TestView.objects.query_test_ids(test_filter_data)
386 tests = models.Test.objects.in_bulk(test_ids)
396 models.SavedQuery.list_objects(filter_data))
402 existing_list = list(models.SavedQuery.objects.filter(owner=owner,
410 return models.SavedQuery.add_object(owner=owner, name=name,
416 query = models.SavedQuery.objects.filter(id__in=id_list, owner=user)
430 for field in models.TestView.group_fields:
431 if field in models.TestView.extra_fields:
432 name = models.TestView.extra_fields[field]
434 name = models.TestView.get_field_dict()[field].verbose_name
437 for field in models.TestView._meta.fields]
440 in models.TestView.extra_fields.iteritems()]