示例#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()
         )
     )
示例#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()
         )
     )
示例#3
0
文件: views.py 项目: e6/mayan-edms
 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
                 )
             )
         )
     )
示例#4
0
 def right_list(self):
     # TODO: filter document type list by user ACL
     return AssignRemoveView.generate_choices(
         self.get_object().document_types.all())
示例#5
0
文件: views.py 项目: e6/mayan-edms
 def right_list(self):
     return AssignRemoveView.generate_choices(
         self.get_object().document_types.all()
     )
示例#6
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()
         )
     )
示例#7
0
文件: views.py 项目: e6/mayan-edms
 def right_list(self):
     return AssignRemoveView.generate_choices(
         self.get_object().metadata.filter(required=True)
     )
示例#8
0
 def right_list(self):
     return AssignRemoveView.generate_choices(
         self.get_object().metadata.filter(required=True))
示例#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))))
示例#10
0
 def right_list(self):
     return AssignRemoveView.generate_choices(
         self.get_object().document_types.all())
示例#11
0
 def left_list(self):
     return AssignRemoveView.generate_choices(
         DocumentType.objects.exclude(
             pk__in=self.get_object().document_types.all()))
示例#12
0
 def right_list(self):
     # TODO: filter document type list by user ACL
     return AssignRemoveView.generate_choices(
         self.get_object().document_types.all()
     )