소스 검색

indexes of automatically created groups have been changed in accordance with changes on the platform

TonyKurts 10 달 전
부모
커밋
1b60cb8e1b
1개의 변경된 파일13개의 추가작업 그리고 11개의 파일을 삭제
  1. 13 11
      SharixAdmin/groups.py

+ 13 - 11
SharixAdmin/groups.py

@@ -6,17 +6,19 @@ from django.contrib.auth.decorators import user_passes_test
 #Создание групп
 @receiver(post_migrate)
 def create_groups(sender, **kwargs):
-    Group.objects.get_or_create(pk=11, name='METASERVICE-ADMIN')
-    Group.objects.get_or_create(pk=12, name='METASERVICE-SUPERVISOR')
-    Group.objects.get_or_create(pk=13, name='METASERVICE-SUPPORT')
-    Group.objects.get_or_create(pk=14, name='METASERVICE-TECHSUPPORT')
-    Group.objects.get_or_create(pk=21, name='PARTNER-ADMIN')
-    Group.objects.get_or_create(pk=22, name='PARTNER-SUPERVISOR')
-    Group.objects.get_or_create(pk=23, name='PARTNER-SUPPORT')
-    Group.objects.get_or_create(pk=24, name='PARTNER-TECHSUPPORT')
-    Group.objects.get_or_create(pk=31, name='PROVIDER')
-    Group.objects.get_or_create(pk=41, name='CLIENT')
-    Group.objects.get_or_create(pk=51, name='GUEST')
+    Group.objects.get_or_create(pk=21, name='METASERVICE-ADMIN')
+    Group.objects.get_or_create(pk=22, name='METASERVICE-SUPERVISOR')
+    Group.objects.get_or_create(pk=23, name='METASERVICE-SUPPORT')
+    Group.objects.get_or_create(pk=24, name='METASERVICE-TECHSUPPORT')
+
+    Group.objects.get_or_create(pk=31, name='PARTNER-ADMIN')
+    Group.objects.get_or_create(pk=32, name='PARTNER-SUPERVISOR')
+    Group.objects.get_or_create(pk=33, name='PARTNER-SUPPORT')
+    Group.objects.get_or_create(pk=34, name='PARTNER-TECHSUPPORT')
+
+    Group.objects.get_or_create(pk=41, name='PROVIDER')
+    Group.objects.get_or_create(pk=51, name='CLIENT')
+    Group.objects.get_or_create(pk=61, name='GUEST')