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