From f16e91e239b443d9131854009f7039db985070bf Mon Sep 17 00:00:00 2001 From: Edward Ribeiro Date: Mon, 10 Oct 2016 16:12:08 -0300 Subject: [PATCH] =?UTF-8?q?Remove=20c=C3=B3digo=20DRF=20n=C3=A3o=20utiliza?= =?UTF-8?q?do?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/sessao/serializers.py | 10 ---------- sapl/sessao/urls.py | 7 +------ sapl/sessao/views.py | 6 ------ 3 files changed, 1 insertion(+), 22 deletions(-) delete mode 100644 sapl/sessao/serializers.py diff --git a/sapl/sessao/serializers.py b/sapl/sessao/serializers.py deleted file mode 100644 index 0a681d142..000000000 --- a/sapl/sessao/serializers.py +++ /dev/null @@ -1,10 +0,0 @@ -from rest_framework import serializers - -from .models import SessaoPlenaria - - -class SessaoPlenariaSerializer(serializers.ModelSerializer): - - class Meta: - model = SessaoPlenaria - fields = ('tipo', 'legislatura', 'sessao_legislativa') diff --git a/sapl/sessao/urls.py b/sapl/sessao/urls.py index 8e209b104..f24c31ef0 100644 --- a/sapl/sessao/urls.py +++ b/sapl/sessao/urls.py @@ -11,7 +11,7 @@ from sapl.sessao.views import (AdicionarVariasMateriasExpediente, PesquisarPautaSessaoView, PesquisarSessaoPlenariaView, PresencaOrdemDiaView, PresencaView, ResumoView, - SessaoCrud, SessaoPlenariaView, + SessaoCrud, TipoExpedienteCrud, TipoResultadoVotacaoCrud, TipoSessaoCrud, VotacaoEditView, VotacaoExpedienteEditView, @@ -30,10 +30,6 @@ from .apps import AppConfig app_name = AppConfig.name -sessao_rest = [ - url(r'^sessao$', SessaoPlenariaView.as_view(), name='sessao_rest') -] - urlpatterns = [ url(r'^sessao/', include(SessaoCrud.get_urls() + OradorCrud.get_urls() + OradorExpedienteCrud.get_urls() + @@ -58,7 +54,6 @@ urlpatterns = [ name="reordenar_expediente"), url(r'^sessao/(?P\d+)/reordenar-ordem$', reordernar_materias_ordem, name="reordenar_ordem"), - url(r'^sessao/rest/', include(sessao_rest)), url(r'^sistema/sessao-plenaria/tipo/', include(TipoSessaoCrud.get_urls())), url(r'^sistema/sessao-plenaria/tipo-resultado-votacao/', diff --git a/sapl/sessao/views.py b/sapl/sessao/views.py index 46d482b49..e987f955e 100644 --- a/sapl/sessao/views.py +++ b/sapl/sessao/views.py @@ -31,7 +31,6 @@ from sapl.parlamentares.models import (Legislatura, Parlamentar, SessaoLegislativa) from sapl.sessao.apps import AppConfig from sapl.sessao.forms import ExpedienteMateriaForm, OrdemDiaForm -from sapl.sessao.serializers import SessaoPlenariaSerializer from sapl.utils import permission_required_for_app from .forms import (AdicionarVariasMateriasFilterSet, ExpedienteForm, @@ -2012,11 +2011,6 @@ class PautaSessaoDetailView(DetailView): return self.render_to_response(context) -class SessaoPlenariaView(generics.ListAPIView): - queryset = SessaoPlenaria.objects.all() - serializer_class = SessaoPlenariaSerializer - - class PautaExpedienteDetail(DetailView): template_name = "sessao/pauta/expediente.html" model = SessaoPlenaria