Showing
2 changed files
with
3 additions
and
0 deletions
@@ -63,5 +63,7 @@ class ComprobanteViewSet(mixins.UpdateModelMixin, | @@ -63,5 +63,7 @@ class ComprobanteViewSet(mixins.UpdateModelMixin, | ||
63 | serializer_class = ComprobanteSerializer | 63 | serializer_class = ComprobanteSerializer |
64 | permission_classes = [IsAuthenticated, ] | 64 | permission_classes = [IsAuthenticated, ] |
65 | queryset = ComprobantePago.objects.all() | 65 | queryset = ComprobantePago.objects.all() |
66 | + ordering_fields = ('edicto',) | ||
67 | + ordering = 'id' | ||
66 | 68 | ||
67 | 69 |
@@ -78,6 +78,7 @@ class PrecioSerializer(serializers.ModelSerializer): | @@ -78,6 +78,7 @@ class PrecioSerializer(serializers.ModelSerializer): | ||
78 | 'precio_ejemplar', | 78 | 'precio_ejemplar', |
79 | 'vigencia_desde', | 79 | 'vigencia_desde', |
80 | 'vigencia_hasta', | 80 | 'vigencia_hasta', |
81 | + 'precio_dia', | ||
81 | ) | 82 | ) |
82 | 83 | ||
83 | included_serializers = {'usuario': UsuarioListaSerializer | 84 | included_serializers = {'usuario': UsuarioListaSerializer |
-
Please register or login to post a comment