Workaround for a very annoying issue. For some reason, policy handlers
cannot import models globally
diff --git a/planetstack/model_policies/model_policy_Slice.py b/planetstack/model_policies/model_policy_Slice.py
index 5d66903..6fd968c 100644
--- a/planetstack/model_policies/model_policy_Slice.py
+++ b/planetstack/model_policies/model_policy_Slice.py
@@ -1,6 +1,7 @@
-from core.models import *
def handle(slice):
+ from core.models import SiteDeployments,SliceDeployments,Deployment
+ from collections import defaultdict
site_deployments = SiteDeployments.objects.all()
site_deploy_lookup = defaultdict(list)
for site_deployment in site_deployments: