Enzo Yair

cambios en el ordering_fields

... ... @@ -54,7 +54,7 @@ class PrecioViewSet(mixins.CreateModelMixin,
permission_classes = [IsAuthenticated, IsAdminOrAuthorized]
filter_backends = (DjangoFilterBackend, filters.OrderingFilter)
filterset_class = PrecioFilter
ordering_fields = ('usuario', 'id',)
ordering_fields = ['vigencia_desde', ]
ordering = 'usuario'
queryset = Precio.objects.all()
... ...