Fix user inconsistencies
diff --git a/xos/core/models/user.py b/xos/core/models/user.py
index 20f463c..f3aa800 100644
--- a/xos/core/models/user.py
+++ b/xos/core/models/user.py
@@ -5,6 +5,10 @@
from collections import defaultdict
from operator import attrgetter, itemgetter
+import synchronizers.model_policy
+from core.middleware import get_request
+from core.models import DashboardView, PlCoreBase, PlModelMixIn, Site
+from core.models.plcorebase import StrippedCharField
from django.contrib.auth.models import AbstractBaseUser, BaseUserManager
from django.core.exceptions import PermissionDenied
from django.core.mail import EmailMultiAlternatives
@@ -12,11 +16,6 @@
from django.db.models import F, Q
from django.forms.models import model_to_dict
from django.utils import timezone
-
-import synchronizers.model_policy
-from core.middleware import get_request
-from core.models import DashboardView, PlCoreBase, PlModelMixIn, Site
-from core.models.plcorebase import StrippedCharField
from timezones.fields import TimeZoneField
# ------ from plcorebase.py ------
@@ -395,7 +394,7 @@
[{'object': django_object_instance, 'permissions': 'rw'}, ...]
Returns:
- list of dicts
+ list of dicts
"""
from core.models import Deployment, Flavor, Image, Network, NetworkTemplate, Node, PlModelMixIn, Site, Slice, SliceTag, Instance, Tag, User, DeploymentPrivilege, SitePrivilege, SlicePrivilege