Use Select2 widget for the document type selection form

This was committed in 109fcba795 without
adding the actual change.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-07-06 02:44:00 -04:00
parent fbb0f0b9bd
commit 6cd857e2bf

View File

@@ -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
)