Merge branch 'fix/filtros_ordenamiento' into 'develop'
fecha_creacion See merge request !42
Showing
2 changed files
with
19 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 = ('fecha_publicacion', 'id') | 26 | + ordering_fields = ('fecha_creacion', 'id') |
27 | ordering = ('fecha_publicacion', 'id',) | 27 | ordering = ('fecha_publicacion', 'id',) |
28 | lookup_field = 'uuid' | 28 | lookup_field = 'uuid' |
29 | 29 |
1 | +# Generated by Django 4.1.9 on 2023-09-12 15:47 | ||
2 | + | ||
3 | +from django.db import migrations, models | ||
4 | + | ||
5 | + | ||
6 | +class Migration(migrations.Migration): | ||
7 | + | ||
8 | + dependencies = [ | ||
9 | + ('edicto', '0012_migracion_dato_uuid'), | ||
10 | + ] | ||
11 | + | ||
12 | + operations = [ | ||
13 | + migrations.AlterField( | ||
14 | + model_name='edicto', | ||
15 | + name='estado', | ||
16 | + field=models.CharField(choices=[('iniciado', 'iniciado'), ('pendiente_revision', 'pendiente_revision'), ('pendiente_de_pago', 'pendiente_de_pago'), ('pendiente_pago_revision', 'pendiente_pago_revision'), ('publicado', 'publicado'), ('aprobado', 'aprobado'), ('rechazado', 'rechazado')], default='inciado', max_length=150), | ||
17 | + ), | ||
18 | + ] |
-
Please register or login to post a comment