Change the index creation, edit and deletion views to CBV. Remove unused IndexForm.

This commit is contained in:
Roberto Rosario
2015-07-09 02:25:23 -04:00
parent a5b7747619
commit 036a55065c
3 changed files with 38 additions and 89 deletions

View File

@@ -8,15 +8,6 @@ from documents.models import Document
from .models import Index, IndexTemplateNode
class IndexForm(forms.ModelForm):
"""
A standard model form to allow users to create a new index
"""
class Meta:
model = Index
exclude = ('document_types',)
class IndexTemplateNodeForm(forms.ModelForm):
"""
A standard model form to allow users to create a new index template node