|
@ -151,7 +151,6 @@ 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,) |
|
@ -254,9 +253,6 @@ class AutoresPossiveisListView(ListAPIView): |
|
|
#filter_backends = (DjangoFilterBackend, ) |
|
|
#filter_backends = (DjangoFilterBackend, ) |
|
|
serializer_class = AutorChoiceSerializer |
|
|
serializer_class = AutorChoiceSerializer |
|
|
|
|
|
|
|
|
def get_queryset(self): |
|
|
|
|
|
return ListAPIView.get_queryset(self) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class MateriaLegislativaViewSet(ListModelMixin, |
|
|
class MateriaLegislativaViewSet(ListModelMixin, |
|
|
RetrieveModelMixin, |
|
|
RetrieveModelMixin, |
|
|