From b1bcfcbc4ef5963a584b7d784f70a08af6bc92c1 Mon Sep 17 00:00:00 2001 From: ryanmerolle Date: Wed, 21 Apr 2021 08:27:20 -0400 Subject: [PATCH] fix isort on groups & permissions scripts --- startup_scripts/010_groups.py | 2 +- startup_scripts/015_object_permissions.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/startup_scripts/010_groups.py b/startup_scripts/010_groups.py index 19bc2da..2abd1ba 100644 --- a/startup_scripts/010_groups.py +++ b/startup_scripts/010_groups.py @@ -1,7 +1,7 @@ import sys -from users.models import AdminGroup, AdminUser from startup_script_utils import load_yaml +from users.models import AdminGroup, AdminUser groups = load_yaml("/opt/netbox/initializers/groups.yml") if groups is None: diff --git a/startup_scripts/015_object_permissions.py b/startup_scripts/015_object_permissions.py index 02d5554..5b41e52 100644 --- a/startup_scripts/015_object_permissions.py +++ b/startup_scripts/015_object_permissions.py @@ -1,8 +1,8 @@ import sys -from users.models import ObjectPermission, AdminGroup, AdminUser -from startup_script_utils import load_yaml from django.contrib.contenttypes.models import ContentType +from startup_script_utils import load_yaml +from users.models import AdminGroup, AdminUser, ObjectPermission object_permissions = load_yaml("/opt/netbox/initializers/object_permissions.yml")