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-08-28 11:37:18 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
81455b8ddd49c3fc1727b423ba0ec98659361a78
81455b8d
1 parent
27d02d28
se agrego el orden
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
project/apps/edicto/api.py
project/apps/edicto/api.py
View file @
81455b8
...
...
@@ -23,8 +23,9 @@ class EdictoViewSet(mixins.CreateModelMixin,
permission_classes
=
[
IsAuthenticated
,
]
filter_backends
=
(
DjangoFilterBackend
,
filters
.
OrderingFilter
)
filterset_class
=
EdictoFilter
queryset
=
Edicto
.
objects
.
all
()
.
order_by
(
'id'
)
queryset
=
Edicto
.
objects
.
all
()
ordering_fields
=
(
'usuario'
,
'estado'
,
'fecha_publicacion'
,
'id'
,)
ordering
=
'id'
def
perform_create
(
self
,
serializer
):
edicto
=
self
.
request
.
data
.
get
(
'cuerpo_edicto'
)
...
...
Please
register
or
login
to post a comment