Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Marta Miranda
/
boletin_api
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Enzo Yair
2023-09-12 12:50:56 -0300
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
b7394c1837130820c5a3ff33224551b0e9cdcd6b
b7394c18
2 parents
6120fd72
30ee69b5
Merge branch 'fix/filtros_ordenamiento' into 'develop'
fecha_creacion See merge request
!42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletions
project/apps/edicto/api.py
project/apps/edicto/migrations/0013_alter_edicto_estado.py
project/apps/edicto/api.py
View file @
b7394c1
...
...
@@ -23,7 +23,7 @@ class EdictoViewSet(mixins.CreateModelMixin,
filter_backends
=
(
DjangoFilterBackend
,
filters
.
OrderingFilter
)
filterset_class
=
EdictoFilter
queryset
=
Edicto
.
objects
.
all
()
ordering_fields
=
(
'fecha_
public
acion'
,
'id'
)
ordering_fields
=
(
'fecha_
cre
acion'
,
'id'
)
ordering
=
(
'fecha_publicacion'
,
'id'
,)
lookup_field
=
'uuid'
...
...
project/apps/edicto/migrations/0013_alter_edicto_estado.py
0 → 100644
View file @
b7394c1
# Generated by Django 4.1.9 on 2023-09-12 15:47
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'edicto'
,
'0012_migracion_dato_uuid'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'edicto'
,
name
=
'estado'
,
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
),
),
]
...
...
Please
register
or
login
to post a comment