Convert document comment deletion view to CBV. Remove unused document comment form.

This commit is contained in:
Roberto Rosario
2015-08-23 21:48:53 -04:00
parent a9517b9645
commit 1aadede546
5 changed files with 44 additions and 110 deletions
+7 -8
View File
@@ -2,20 +2,19 @@ from __future__ import unicode_literals
from django.conf.urls import patterns, url
from .views import CommentCreateView, DocumentCommentListView
from .views import (
DocumentCommentCreateView, DocumentCommentDeleteView,
DocumentCommentListView
)
urlpatterns = patterns(
'document_comments.views',
'',
url(
r'^comment/(?P<comment_id>\d+)/delete/$', 'comment_delete',
r'^comment/(?P<pk>\d+)/delete/$', DocumentCommentDeleteView.as_view(),
name='comment_delete'
),
url(
r'^comment/multiple/delete/$', 'comment_multiple_delete',
name='comment_multiple_delete'
),
url(
r'^(?P<pk>\d+)/comment/add/$', CommentCreateView.as_view(),
r'^(?P<pk>\d+)/comment/add/$', DocumentCommentCreateView.as_view(),
name='comment_add'
),
url(