2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 04:55:44 +00:00

resort imports

This commit is contained in:
Matthias Mair
2022-05-20 17:24:51 +02:00
parent ddc4ef3c38
commit e1d22f538d
156 changed files with 807 additions and 1042 deletions

View File

@ -1,6 +1,5 @@
from django.db.utils import OperationalError, ProgrammingError
from django.apps import AppConfig
from django.db.utils import OperationalError, ProgrammingError
from InvenTree.ready import canAppAccessDatabase
@ -25,6 +24,7 @@ class UsersConfig(AppConfig):
def assign_permissions(self):
from django.contrib.auth.models import Group
from users.models import RuleSet, update_group_roles
# First, delete any rule_set objects which have become outdated!
@ -42,6 +42,7 @@ class UsersConfig(AppConfig):
from django.contrib.auth import get_user_model
from django.contrib.auth.models import Group
from users.models import Owner
# Create group owners