示例#1
0
 def right_list(self):
     return AssignRemoveView.generate_choices(
         Group.objects.filter(user=self.get_object())
     )
示例#2
0
文件: views.py 项目: e6/mayan-edms
 def right_list(self):
     return AssignRemoveView.generate_choices(
         self.get_object().document_types.all()
     )
示例#3
0
 def left_list(self):
     return AssignRemoveView.generate_choices(
         Group.objects.exclude(user=self.get_object())
     )
示例#4
0
 def left_list(self):
     return AssignRemoveView.generate_choices(
         self.get_document_queryset().exclude(
             id__in=self.get_object().document_types.all()))
示例#5
0
文件: views.py 项目: e6/mayan-edms
 def left_list(self):
     return AssignRemoveView.generate_choices(
         DocumentType.objects.exclude(
             pk__in=self.get_object().document_types.all()
         )
     )
示例#6
0
 def right_list(self):
     return AssignRemoveView.generate_choices(
         Group.objects.filter(user=self.get_object()))
示例#7
0
 def right_list(self):
     return AssignRemoveView.generate_choices(
         self.get_document_queryset()
         & self.get_object().document_types.all())
示例#8
0
文件: views.py 项目: e6/mayan-edms
 def right_list(self):
     return AssignRemoveView.generate_choices(
         self.get_object().user_set.all()
     )
示例#9
0
 def left_list(self):
     return AssignRemoveView.generate_choices(
         Group.objects.exclude(user=self.get_object()))
示例#10
0
 def left_list(self):
     return AssignRemoveView.generate_choices(
         self.get_object().get_document_types_not_in_workflow())
示例#11
0
文件: views.py 项目: e6/mayan-edms
 def left_list(self):
     return AssignRemoveView.generate_choices(
         User.objects.exclude(
             groups=self.get_object()
         ).exclude(is_staff=True).exclude(is_superuser=True)
     )
示例#12
0
 def left_list(self):
     return AssignRemoveView.generate_choices(
         DocumentType.objects.exclude(
             pk__in=self.get_object().document_types.all()))
示例#13
0
文件: views.py 项目: e6/mayan-edms
 def left_list(self):
     return AssignRemoveView.generate_choices(
         self.get_object().get_document_types_not_in_workflow()
     )
示例#14
0
 def left_list(self):
     return AssignRemoveView.generate_choices(
         self.get_document_queryset().exclude(
             id__in=self.get_object().document_types.all()
         )
     )
示例#15
0
 def right_list(self):
     return AssignRemoveView.generate_choices(
         self.get_object().user_set.all())
示例#16
0
 def left_list(self):
     return AssignRemoveView.generate_choices(
         User.objects.exclude(groups=self.get_object()).exclude(
             is_staff=True).exclude(is_superuser=True))