From 8e6e59cdbd85ae79ed2f8fe2a4d445135ed0528f Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Mon, 27 Jul 2015 16:37:46 -0300 Subject: [PATCH] Rename views --- comissoes/urls.py | 8 ++++---- comissoes/views.py | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/comissoes/urls.py b/comissoes/urls.py index 577242de9..dea39fedb 100644 --- a/comissoes/urls.py +++ b/comissoes/urls.py @@ -1,15 +1,15 @@ from django.conf.urls import url from comissoes.views import ( - comissao_crud, ComposicaoListView, MateriasListView, ReunioesListView) + comissao_crud, ComposicaoView, MateriasView, ReunioesView) urlpatterns = comissao_crud.urlpatterns + [ url(r'^(?P\d+)/composicao$', - ComposicaoListView.as_view(), name='composicao'), + ComposicaoView.as_view(), name='composicao'), url(r'^(?P\d+)/materias$', - MateriasListView.as_view(), name='materias'), + MateriasView.as_view(), name='materias'), url(r'^(?P\d+)/reunioes$', - ReunioesListView.as_view(), name='reunioes'), + ReunioesView.as_view(), name='reunioes'), ] comissoes_urls = urlpatterns, comissao_crud.namespace, comissao_crud.namespace diff --git a/comissoes/views.py b/comissoes/views.py index 7bb9655ea..e29b92748 100644 --- a/comissoes/views.py +++ b/comissoes/views.py @@ -55,13 +55,13 @@ comissao_crud = build_crud( ) -class ComposicaoListView(comissao_crud.CrudDetailView): +class ComposicaoView(comissao_crud.CrudDetailView): template_name = 'comissoes/composicao.html' -class MateriasListView(comissao_crud.CrudDetailView): +class MateriasView(comissao_crud.CrudDetailView): template_name = 'comissoes/materias.html' -class ReunioesListView(comissao_crud.CrudDetailView): +class ReunioesView(comissao_crud.CrudDetailView): template_name = 'comissoes/reunioes.html'