Added view to add, edit and delete document types from the setup menu

This commit is contained in:
Roberto Rosario
2011-06-12 19:18:01 -04:00
parent b1b68bda67
commit 370785ad9d
8 changed files with 167 additions and 13 deletions

View File

@@ -271,3 +271,11 @@ class StagingDocumentForm(DocumentForm):
class Meta(DocumentForm.Meta):
exclude = ('description', 'file', 'document_type', 'tags')
class DocumentTypeForm(forms.ModelForm):
"""
Model class form to create or edit a document type
"""
class Meta:
model = DocumentType