Ejemplo n.º 1
0
 def left_list(self):
     # TODO: filter document type list by user ACL
     return AssignRemoveView.generate_choices(
         DocumentType.objects.exclude(
             pk__in=self.get_object().document_types.all()
         )
     )
Ejemplo n.º 2
0
 def left_list(self):
     # TODO: filter document type list by user ACL
     return AssignRemoveView.generate_choices(
         DocumentType.objects.exclude(
             pk__in=self.get_object().document_types.all()
         )
     )
Ejemplo n.º 3
0
 def left_list(self):
     return AssignRemoveView.generate_choices(
         set(MetadataType.objects.all()) - set(
             MetadataType.objects.filter(
                 id__in=self.get_object().metadata.values_list(
                     'metadata_type', flat=True
                 )
             )
         )
     )
Ejemplo n.º 4
0
 def right_list(self):
     # TODO: filter document type list by user ACL
     return AssignRemoveView.generate_choices(
         self.get_object().document_types.all())
Ejemplo n.º 5
0
 def right_list(self):
     return AssignRemoveView.generate_choices(
         self.get_object().document_types.all()
     )
Ejemplo n.º 6
0
 def left_list(self):
     return AssignRemoveView.generate_choices(
         DocumentType.objects.exclude(
             pk__in=self.get_object().document_types.all()
         )
     )
Ejemplo n.º 7
0
 def right_list(self):
     return AssignRemoveView.generate_choices(
         self.get_object().metadata.filter(required=True)
     )
Ejemplo n.º 8
0
 def right_list(self):
     return AssignRemoveView.generate_choices(
         self.get_object().metadata.filter(required=True))
Ejemplo n.º 9
0
 def left_list(self):
     return AssignRemoveView.generate_choices(
         set(MetadataType.objects.all()) - set(
             MetadataType.objects.filter(id__in=self.get_object(
             ).metadata.values_list('metadata_type', flat=True))))
Ejemplo n.º 10
0
 def right_list(self):
     return AssignRemoveView.generate_choices(
         self.get_object().document_types.all())
Ejemplo n.º 11
0
 def left_list(self):
     return AssignRemoveView.generate_choices(
         DocumentType.objects.exclude(
             pk__in=self.get_object().document_types.all()))
Ejemplo n.º 12
0
 def right_list(self):
     # TODO: filter document type list by user ACL
     return AssignRemoveView.generate_choices(
         self.get_object().document_types.all()
     )