Marta Miranda

Merge branch 'feature/#83_agregar_ordenamiento' into 'develop'

cambios en el ordering_fields



See merge request !75
@@ -54,7 +54,7 @@ class PrecioViewSet(mixins.CreateModelMixin, @@ -54,7 +54,7 @@ class PrecioViewSet(mixins.CreateModelMixin,
54 permission_classes = [IsAuthenticated, IsAdminOrAuthorized] 54 permission_classes = [IsAuthenticated, IsAdminOrAuthorized]
55 filter_backends = (DjangoFilterBackend, filters.OrderingFilter) 55 filter_backends = (DjangoFilterBackend, filters.OrderingFilter)
56 filterset_class = PrecioFilter 56 filterset_class = PrecioFilter
57 - ordering_fields = ('usuario', 'id',) 57 + ordering_fields = ['vigencia_desde', ]
58 ordering = 'usuario' 58 ordering = 'usuario'
59 queryset = Precio.objects.all() 59 queryset = Precio.objects.all()
60 60