From 47ac689ce501d3aa592ee5ab9f3fc68ed896b363 Mon Sep 17 00:00:00 2001 From: LeandroJatai Date: Tue, 27 Sep 2022 15:37:16 -0300 Subject: [PATCH] =?UTF-8?q?HOT-FIX:=20corrige=20chamada=20de=20met=C3=B3do?= =?UTF-8?q?=20est=C3=A1tico?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sapl/api/views_materia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/api/views_materia.py b/sapl/api/views_materia.py index 8c5515d88..d37658afa 100644 --- a/sapl/api/views_materia.py +++ b/sapl/api/views_materia.py @@ -100,7 +100,7 @@ class _MateriaLegislativaViewSet: ultima_tramitacao = materia.tramitacao_set.order_by( '-data_tramitacao', '-id').first() - serializer_class = MateriaApiViewSetConstrutor.get_viewset_for_model( + serializer_class = ApiViewSetConstrutor.get_viewset_for_model( Tramitacao).serializer_class(ultima_tramitacao) return Response(serializer_class.data)