diff --git a/HISTORY.rst b/HISTORY.rst index c03c33009a..e71d547645 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -29,6 +29,7 @@ - Add staging file deletion permission. - New document_signature_view permission. - Add support for signing documents. +- Replace document type selection widget with an opened selection list. 2.0.2 (2016-02-09) ================== diff --git a/mayan/apps/documents/forms.py b/mayan/apps/documents/forms.py index d1c6126f94..90636b4425 100644 --- a/mayan/apps/documents/forms.py +++ b/mayan/apps/documents/forms.py @@ -169,8 +169,8 @@ class DocumentTypeSelectForm(forms.Form): ) self.fields['document_type'] = forms.ModelChoiceField( - queryset=queryset, - label=_('Document type') + empty_label=None, label=_('Document type'), queryset=queryset, + required=True, widget=forms.widgets.Select(attrs={'size': 10}) )