From ece3bc5e64e4dbcdbee590b3fb082929623edd27 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Wed, 19 Nov 2014 11:48:32 -0500 Subject: [PATCH] Move cache_timeout_blocked to the job template where it belong from the job model --- awx/main/models/jobs.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/awx/main/models/jobs.py b/awx/main/models/jobs.py index d31f571607..ecb921f1e3 100644 --- a/awx/main/models/jobs.py +++ b/awx/main/models/jobs.py @@ -287,6 +287,9 @@ class JobTemplate(UnifiedJobTemplate, JobOptions): survey_element['choices'])) return errors + @property + def cache_timeout_blocked(self): + return False def _can_update(self): return self.can_start_without_user_input() @@ -370,10 +373,6 @@ class Job(UnifiedJob, JobOptions): return False return False - @property - def cache_timeout_blocked(self): - return False - @property def task_impact(self): # NOTE: We sorta have to assume the host count matches and that forks default to 5