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:
@@ -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
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user