Showing
1 changed file
with
1 additions
and
1 deletions
@@ -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 |
-
Please register or login to post a comment