From 1f315b06e2eddc11cb7bd0ffafc2483c67ce5c45 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Fri, 26 Jun 2020 14:10:21 +0100 Subject: [PATCH] Revert "Revert "Merge pull request #2902 from alphagov/fix-imports"" This reverts commit b8fe7b8e61dd7f1162052e6dc7fa2f3ef42aafe7. --- app/serialised_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/serialised_models.py b/app/serialised_models.py index 7f88171d2..e47c8800c 100644 --- a/app/serialised_models.py +++ b/app/serialised_models.py @@ -9,7 +9,6 @@ from werkzeug.utils import cached_property from app import db, redis_store -from app.dao import templates_dao from app.dao.api_key_dao import get_model_api_keys from app.dao.services_dao import dao_fetch_service_by_id @@ -101,6 +100,7 @@ class SerialisedTemplate(SerialisedModel): @staticmethod @redis_cache.set('template-{template_id}-version-None') def get_dict(template_id, service_id): + from app.dao import templates_dao from app.schemas import template_schema fetched_template = templates_dao.dao_get_template_by_id_and_service_id(