fix isort on groups & permissions scripts
This commit is contained in:
parent
a7a5d13637
commit
b1bcfcbc4e
|
@ -1,7 +1,7 @@
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from users.models import AdminGroup, AdminUser
|
|
||||||
from startup_script_utils import load_yaml
|
from startup_script_utils import load_yaml
|
||||||
|
from users.models import AdminGroup, AdminUser
|
||||||
|
|
||||||
groups = load_yaml("/opt/netbox/initializers/groups.yml")
|
groups = load_yaml("/opt/netbox/initializers/groups.yml")
|
||||||
if groups is None:
|
if groups is None:
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from users.models import ObjectPermission, AdminGroup, AdminUser
|
|
||||||
from startup_script_utils import load_yaml
|
|
||||||
from django.contrib.contenttypes.models import ContentType
|
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")
|
object_permissions = load_yaml("/opt/netbox/initializers/object_permissions.yml")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue