From 3861bc351a2fcf1b4929e08791ddb3f2b5ed9fa8 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 7 Jul 2015 23:37:51 -0400 Subject: [PATCH] Remove unused code. --- mayan/apps/common/forms.py | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/mayan/apps/common/forms.py b/mayan/apps/common/forms.py index 23adb1e63c..26c4ea2112 100644 --- a/mayan/apps/common/forms.py +++ b/mayan/apps/common/forms.py @@ -57,11 +57,6 @@ class DetailForm(forms.ModelForm): self.fields[field_name].widget.attrs.update({'readonly': 'readonly'}) -class GenericConfirmForm(forms.Form): - def __init__(self, *args, **kwargs): - pass - - class GenericAssignRemoveForm(forms.Form): def __init__(self, *args, **kwargs): left_list_qryset = kwargs.pop('left_list_qryset', None) @@ -80,16 +75,6 @@ class GenericAssignRemoveForm(forms.Form): right_list = forms.ModelMultipleChoiceField(required=False, queryset=None) -class FilterForm(forms.Form): - def __init__(self, list_filters, *args, **kwargs): - super(FilterForm, self).__init__(*args, **kwargs) - for list_filter in list_filters: - label = list_filter.get('title', list_filter['name']) - self.fields[list_filter['name']] = forms.ModelChoiceField( - queryset=list_filter['queryset'], - label=label[0].upper() + label[1:], required=False) - - class ChoiceForm(forms.Form): """ Form to be used in side by side templates used to add or remove @@ -140,7 +125,7 @@ class LocaleProfileForm_view(DetailForm): class FileDisplayForm(forms.Form): text = forms.CharField( - label='', # _('Text'), + label='', widget=forms.widgets.Textarea( attrs={'cols': 40, 'rows': 20, 'readonly': 'readonly'} )