From 6cd857e2bfe34eb0e9bb8ed375e4bc65a2146c08 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Sat, 6 Jul 2019 02:44:00 -0400 Subject: [PATCH] Use Select2 widget for the document type selection form This was committed in 109fcba7955fe5ac87a939e7cb37fe1f9c7cc88d without adding the actual change. Signed-off-by: Roberto Rosario --- mayan/apps/documents/forms/document_type_forms.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mayan/apps/documents/forms/document_type_forms.py b/mayan/apps/documents/forms/document_type_forms.py index cc8a029a03..7484cf23c3 100644 --- a/mayan/apps/documents/forms/document_type_forms.py +++ b/mayan/apps/documents/forms/document_type_forms.py @@ -41,7 +41,8 @@ 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 )