Browse Source

Fix deprecated style for urls.py

pull/6/head
Marcio Mazza 10 years ago
parent
commit
3b867162e3
  1. 7
      comissoes/urls.py

7
comissoes/urls.py

@ -1,14 +1,13 @@
from django.conf.urls import patterns, url from django.conf.urls import url
from comissoes.views import ( from comissoes.views import (
ComissaoListView, ComissaoDetailView, ComissaoUpdateView) ComissaoListView, ComissaoDetailView, ComissaoUpdateView)
urlpatterns = patterns( urlpatterns = [
'comissoes.views',
url(r'^$', ComissaoListView.as_view(), name='comissao_list'), url(r'^$', ComissaoListView.as_view(), name='comissao_list'),
url(r'^(?P<pk>\d+)$', ComissaoDetailView.as_view(), url(r'^(?P<pk>\d+)$', ComissaoDetailView.as_view(),
name='comissao_detail'), name='comissao_detail'),
url(r'^(?P<pk>\d+)/edit$', ComissaoUpdateView.as_view(), url(r'^(?P<pk>\d+)/edit$', ComissaoUpdateView.as_view(),
name='comissao_update'), name='comissao_update'),
) ]

Loading…
Cancel
Save