Use explicit fields instead of excluding fields from other apps
This commit is contained in:
@@ -31,7 +31,6 @@ class DocumentPageTransformationForm(forms.ModelForm):
|
|||||||
class DocumentPageForm(DetailForm):
|
class DocumentPageForm(DetailForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = DocumentPage
|
model = DocumentPage
|
||||||
#exclude = ('document', 'document_type', 'page_label', 'content')
|
|
||||||
fields = ()
|
fields = ()
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
@@ -99,7 +98,6 @@ class DocumentForm(forms.ModelForm):
|
|||||||
"""
|
"""
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Document
|
model = Document
|
||||||
#exclude = ('description', 'tags', 'document_type')
|
|
||||||
exclude = ('tags', 'document_type')
|
exclude = ('tags', 'document_type')
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
@@ -201,7 +199,7 @@ class DocumentPropertiesForm(DetailForm):
|
|||||||
"""
|
"""
|
||||||
class Meta:
|
class Meta:
|
||||||
model = Document
|
model = Document
|
||||||
exclude = ('file', 'tags')
|
fields = ('document_type', 'description',)
|
||||||
|
|
||||||
|
|
||||||
class DocumentContentForm(forms.Form):
|
class DocumentContentForm(forms.Form):
|
||||||
|
|||||||
Reference in New Issue
Block a user