Exemple #1
0
 def right_list(self):
     return AssignRemoveView.generate_choices(
         Group.objects.filter(user=self.get_object())
     )
Exemple #2
0
 def right_list(self):
     return AssignRemoveView.generate_choices(
         self.get_object().document_types.all()
     )
Exemple #3
0
 def left_list(self):
     return AssignRemoveView.generate_choices(
         Group.objects.exclude(user=self.get_object())
     )
Exemple #4
0
 def left_list(self):
     return AssignRemoveView.generate_choices(
         self.get_document_queryset().exclude(
             id__in=self.get_object().document_types.all()))
Exemple #5
0
 def left_list(self):
     return AssignRemoveView.generate_choices(
         DocumentType.objects.exclude(
             pk__in=self.get_object().document_types.all()
         )
     )
Exemple #6
0
 def right_list(self):
     return AssignRemoveView.generate_choices(
         Group.objects.filter(user=self.get_object()))
Exemple #7
0
 def right_list(self):
     return AssignRemoveView.generate_choices(
         self.get_document_queryset()
         & self.get_object().document_types.all())
Exemple #8
0
 def right_list(self):
     return AssignRemoveView.generate_choices(
         self.get_object().user_set.all()
     )
Exemple #9
0
 def left_list(self):
     return AssignRemoveView.generate_choices(
         Group.objects.exclude(user=self.get_object()))
Exemple #10
0
 def left_list(self):
     return AssignRemoveView.generate_choices(
         self.get_object().get_document_types_not_in_workflow())
Exemple #11
0
 def left_list(self):
     return AssignRemoveView.generate_choices(
         User.objects.exclude(
             groups=self.get_object()
         ).exclude(is_staff=True).exclude(is_superuser=True)
     )
Exemple #12
0
 def left_list(self):
     return AssignRemoveView.generate_choices(
         DocumentType.objects.exclude(
             pk__in=self.get_object().document_types.all()))
Exemple #13
0
 def left_list(self):
     return AssignRemoveView.generate_choices(
         self.get_object().get_document_types_not_in_workflow()
     )
Exemple #14
0
 def left_list(self):
     return AssignRemoveView.generate_choices(
         self.get_document_queryset().exclude(
             id__in=self.get_object().document_types.all()
         )
     )
Exemple #15
0
 def right_list(self):
     return AssignRemoveView.generate_choices(
         self.get_object().user_set.all())
Exemple #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))