Lines Matching refs:models
16 from autotest_lib.frontend.afe import models
76 return models.Label.objects.filter(**kwargs)
82 return models.AclGroup.objects.filter(**kwargs)
88 return models.Host.objects.filter(**kwargs)
93 return models.HostQueueEntry.objects.filter(**kwargs)
98 return models.SpecialTask.objects.filter(**kwargs)
103 return models.Shard.objects.filter(**kwargs)
109 return (models.Label.add_object(name=name, **kwargs)
115 user = models.User.objects.filter(login=name)
116 return models.User.add_object(login=name) if not user else user[0]
121 task=models.SpecialTask.Task.VERIFY,
128 host = models.Host.objects.get(id=host_id)
132 return models.SpecialTask.objects.create(
144 return (models.Shard.objects.create(hostname=shard_hostname)
159 return (models.AclGroup.add_object(name=name)
180 job_filter = models.Job.objects.filter(id=job_id, shard__isnull=True)
225 host = models.Host.add_object(
244 models.HostQueueEntry.objects.filter(id=hqe_id).update(**kwargs)
253 models.SpecialTask.objects.filter(id=task_id).update(**kwargs)
267 hqe = models.HostQueueEntry.objects.get(job_id=job_id)
278 job = models.Job.objects.get(id=job_id)
412 return models.Job.objects.filter(id=job.id)[0]
426 host = models.Host.objects.get(id=host_id)
483 job = models.Job.objects.get(id=job_id)
484 host = models.Host.objects.get(id=host_id)
489 all_hqes = models.HostQueueEntry.objects.filter(