From 94b00c7ce54c819e2a8971d5a05f11c78f385d21 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Wed, 30 Mar 2016 17:19:27 -0400 Subject: [PATCH] Replace document type selection widget with an opened select list HTML control. --- HISTORY.rst | 1 + mayan/apps/documents/forms.py | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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}) )