diff --git a/CHANGES.rst b/CHANGES.rst new file mode 100644 index 0000000000..4b9346f9a9 --- /dev/null +++ b/CHANGES.rst @@ -0,0 +1 @@ +- Use Select2 widget for the document type selection form. diff --git a/mayan/apps/documents/forms/document_type_forms.py b/mayan/apps/documents/forms/document_type_forms.py index cc8a029a03..e2d75f8d61 100644 --- a/mayan/apps/documents/forms/document_type_forms.py +++ b/mayan/apps/documents/forms/document_type_forms.py @@ -41,7 +41,7 @@ class DocumentTypeFilteredSelectForm(forms.Form): self.fields['document_type'] = field_class( help_text=help_text, label=_('Document type'), queryset=queryset, required=True, - widget=widget_class(attrs={'size': 10}), **extra_kwargs + widget=widget_class(attrs={'class': 'select2', 'size': 10}), **extra_kwargs )