From b01b08f43b0eafed62884fff3aaac10c3981fd16 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Wed, 2 Jul 2014 14:34:16 -0400 Subject: [PATCH] Use explicit fields instead of excluding fields from other apps --- mayan/apps/documents/forms.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mayan/apps/documents/forms.py b/mayan/apps/documents/forms.py index 07e34af721..3a3ccbba14 100644 --- a/mayan/apps/documents/forms.py +++ b/mayan/apps/documents/forms.py @@ -31,7 +31,6 @@ class DocumentPageTransformationForm(forms.ModelForm): class DocumentPageForm(DetailForm): class Meta: model = DocumentPage - #exclude = ('document', 'document_type', 'page_label', 'content') fields = () def __init__(self, *args, **kwargs): @@ -99,7 +98,6 @@ class DocumentForm(forms.ModelForm): """ class Meta: model = Document - #exclude = ('description', 'tags', 'document_type') exclude = ('tags', 'document_type') def __init__(self, *args, **kwargs): @@ -201,7 +199,7 @@ class DocumentPropertiesForm(DetailForm): """ class Meta: model = Document - exclude = ('file', 'tags') + fields = ('document_type', 'description',) class DocumentContentForm(forms.Form):