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'])
def __init__(self, *args, **kwargs): super(ExternalDocForm, self).__init__(*args, **kwargs) apply_class_to_fields(self.fields, 'form-control form-control-sm')
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'])
def __init__(self, *args, **kwargs): super(DocumentReviewForm, self).__init__(*args, **kwargs) apply_class_to_fields(self.fields, 'form-control form-control-sm')
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')