Merge branch 'fix/filtros_ordenamiento' into 'develop'
Fix/filtros ordenamiento See merge request !41
Showing
2 changed files
with
5 additions
and
1 deletions
@@ -23,7 +23,7 @@ class EdictoViewSet(mixins.CreateModelMixin, | @@ -23,7 +23,7 @@ class EdictoViewSet(mixins.CreateModelMixin, | ||
23 | filter_backends = (DjangoFilterBackend, filters.OrderingFilter) | 23 | filter_backends = (DjangoFilterBackend, filters.OrderingFilter) |
24 | filterset_class = EdictoFilter | 24 | filterset_class = EdictoFilter |
25 | queryset = Edicto.objects.all() | 25 | queryset = Edicto.objects.all() |
26 | - ordering_fields = ('usuario',) | 26 | + ordering_fields = ('fecha_publicacion', 'id') |
27 | ordering = ('fecha_publicacion', 'id',) | 27 | ordering = ('fecha_publicacion', 'id',) |
28 | lookup_field = 'uuid' | 28 | lookup_field = 'uuid' |
29 | 29 |
1 | from django.utils.translation import gettext_lazy as _ | 1 | from django.utils.translation import gettext_lazy as _ |
2 | 2 | ||
3 | INICIADO = 'iniciado' | 3 | INICIADO = 'iniciado' |
4 | +PENDIENTE_REVISION= 'pendiente_revision' | ||
4 | PENDIENTE_DE_PAGO = 'pendiente_de_pago' | 5 | PENDIENTE_DE_PAGO = 'pendiente_de_pago' |
6 | +PENDIENTE_PAGO_REVISION= 'pendiente_pago_revision' | ||
5 | PUBLICADO = 'publicado' | 7 | PUBLICADO = 'publicado' |
6 | APROBADO = 'aprobado' | 8 | APROBADO = 'aprobado' |
7 | RECHAZADO = 'rechazado' | 9 | RECHAZADO = 'rechazado' |
@@ -9,7 +11,9 @@ RECHAZADO = 'rechazado' | @@ -9,7 +11,9 @@ RECHAZADO = 'rechazado' | ||
9 | 11 | ||
10 | STATUS_CHOICE = [ | 12 | STATUS_CHOICE = [ |
11 | (INICIADO, _('iniciado')), | 13 | (INICIADO, _('iniciado')), |
14 | + (PENDIENTE_REVISION, _('pendiente_revision')), | ||
12 | (PENDIENTE_DE_PAGO, _('pendiente_de_pago')), | 15 | (PENDIENTE_DE_PAGO, _('pendiente_de_pago')), |
16 | + (PENDIENTE_PAGO_REVISION, _('pendiente_pago_revision')), | ||
13 | (PUBLICADO, _('publicado')), | 17 | (PUBLICADO, _('publicado')), |
14 | (APROBADO, _('aprobado')), | 18 | (APROBADO, _('aprobado')), |
15 | (RECHAZADO, _('rechazado')), | 19 | (RECHAZADO, _('rechazado')), |
-
Please register or login to post a comment