Browse Source

Ajst js de psq autor e insere drf base para combos

pull/1356/head
LeandroRoberto 8 years ago
parent
commit
81d175e66d
  1. 2
      sapl/api/views.py

2
sapl/api/views.py

@ -151,6 +151,7 @@ class AutorListView(ListAPIView):
return tr return tr
def get(self, request, *args, **kwargs): def get(self, request, *args, **kwargs):
if self.tr == AutorListView.TR_AUTOR_SERIALIZER: if self.tr == AutorListView.TR_AUTOR_SERIALIZER:
self.serializer_class = AutorSerializer self.serializer_class = AutorSerializer
self.permission_classes = (IsAuthenticated,) self.permission_classes = (IsAuthenticated,)
@ -250,7 +251,6 @@ class AutoresPossiveisListView(ListAPIView):
pagination_class = None pagination_class = None
filter_class = AutoresPossiveisFilterSet filter_class = AutoresPossiveisFilterSet
#filter_backends = (DjangoFilterBackend, )
serializer_class = AutorChoiceSerializer serializer_class = AutorChoiceSerializer

Loading…
Cancel
Save