From 3b867162e3aa88cda5c8d64195fb2c256c188f0d Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Tue, 21 Jul 2015 20:03:27 -0300 Subject: [PATCH] Fix deprecated style for urls.py --- comissoes/urls.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/comissoes/urls.py b/comissoes/urls.py index a4c27f283..0efd513aa 100644 --- a/comissoes/urls.py +++ b/comissoes/urls.py @@ -1,14 +1,13 @@ -from django.conf.urls import patterns, url +from django.conf.urls import url from comissoes.views import ( ComissaoListView, ComissaoDetailView, ComissaoUpdateView) -urlpatterns = patterns( - 'comissoes.views', +urlpatterns = [ url(r'^$', ComissaoListView.as_view(), name='comissao_list'), url(r'^(?P\d+)$', ComissaoDetailView.as_view(), name='comissao_detail'), url(r'^(?P\d+)/edit$', ComissaoUpdateView.as_view(), name='comissao_update'), -) +]