From 81d175e66dec22aa3542d5de92129a7688b14e0b Mon Sep 17 00:00:00 2001 From: LeandroRoberto Date: Thu, 3 Aug 2017 10:27:06 -0300 Subject: [PATCH] Ajst js de psq autor e insere drf base para combos --- sapl/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/api/views.py b/sapl/api/views.py index 5e4c82bf7..7c8ddcf8d 100644 --- a/sapl/api/views.py +++ b/sapl/api/views.py @@ -151,6 +151,7 @@ class AutorListView(ListAPIView): return tr def get(self, request, *args, **kwargs): + if self.tr == AutorListView.TR_AUTOR_SERIALIZER: self.serializer_class = AutorSerializer self.permission_classes = (IsAuthenticated,) @@ -250,7 +251,6 @@ class AutoresPossiveisListView(ListAPIView): pagination_class = None filter_class = AutoresPossiveisFilterSet - #filter_backends = (DjangoFilterBackend, ) serializer_class = AutorChoiceSerializer