Bug fixes in model policies
diff --git a/planetstack/model_policies/model_policy_SlicePrivilege.py b/planetstack/model_policies/model_policy_SlicePrivilege.py
index e58a973..bca7f22 100644
--- a/planetstack/model_policies/model_policy_SlicePrivilege.py
+++ b/planetstack/model_policies/model_policy_SlicePrivilege.py
@@ -6,7 +6,7 @@
controller_slice_privileges = ControllerSlicePrivilege.objects.filter(
slice_privilege = slice_privilege,
)
- existing_controllers = [csp.controller for sp in controller_slice_privileges]
+ existing_controllers = [sp.controller for sp in controller_slice_privileges]
all_controllers = Controller.objects.all()
for controller in all_controllers:
if controller not in existing_controllers: