Browse Source

Desmembra buscas de /api/autor em views específicas

pull/1356/head
LeandroRoberto 8 years ago
parent
commit
82a3107a77
  1. 1
      sapl/api/forms.py
  2. 4
      sapl/api/views.py

1
sapl/api/forms.py

@ -55,7 +55,6 @@ class SaplGenericRelationSearchFilterSet(FilterSet):
if q:
queryset = queryset.filter(q).order_by(*order_by)
print(queryset.query)
return queryset

4
sapl/api/views.py

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

Loading…
Cancel
Save