示例#1
0
文件: forms.py 项目: phwt/DMS
 def __init__(self, *args, **kwargs):
     super(InternalDocFilterForm, self).__init__(*args, **kwargs)
     all_field_required_false(self.fields)
     apply_class_to_fields(self.fields,
                           'form-control form-control-sm',
                           exclude=['parent_doc', 'department', 'creator'])
示例#2
0
文件: forms.py 项目: phwt/DMS
 def __init__(self, *args, **kwargs):
     super(ExternalDocForm, self).__init__(*args, **kwargs)
     apply_class_to_fields(self.fields, 'form-control form-control-sm')
示例#3
0
 def __init__(self, *args, **kwargs):
     super(WorkFilterForm, self).__init__(*args, **kwargs)
     all_field_required_false(self.fields)
     apply_class_to_fields(self.fields, 'form-control form-control-sm', exclude=['document', 'employee'])
示例#4
0
 def __init__(self, *args, **kwargs):
     super(DocumentReviewForm, self).__init__(*args, **kwargs)
     apply_class_to_fields(self.fields, 'form-control form-control-sm')
示例#5
0
 def __init__(self, *args, **kwargs):
     super(DocumentCreateForm, self).__init__(*args, **kwargs)
     self.fields['parent_doc'].required = False
     apply_class_to_fields(self.fields, 'form-control form-control-sm')