Remove usage of url.patterns as per Django's deprecation warnings.

This commit is contained in:
Roberto Rosario
2016-11-04 04:02:48 -04:00
parent bc7f5f44ed
commit 2df6cb7985
28 changed files with 118 additions and 160 deletions

View File

@@ -1,14 +1,13 @@
from __future__ import unicode_literals
from django.conf.urls import patterns, url
from django.conf.urls import url
from .views import (
DocumentCommentCreateView, DocumentCommentDeleteView,
DocumentCommentListView
)
urlpatterns = patterns(
'',
urlpatterns = [
url(
r'^comment/(?P<pk>\d+)/delete/$', DocumentCommentDeleteView.as_view(),
name='comment_delete'
@@ -21,4 +20,4 @@ urlpatterns = patterns(
r'^(?P<pk>\d+)/comment/list/$',
DocumentCommentListView.as_view(), name='comments_for_document'
),
)
]