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-10-24 08:30:54 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5b9f1a846063f5ebbce1a58f612107e0fb860dc9
5b9f1a84
1 parent
e1eb1589
cambios en el ordering_fields
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
project/apps/edicto/api.py
project/apps/edicto/api.py
View file @
5b9f1a8
...
...
@@ -54,7 +54,7 @@ class PrecioViewSet(mixins.CreateModelMixin,
permission_classes
=
[
IsAuthenticated
,
IsAdminOrAuthorized
]
filter_backends
=
(
DjangoFilterBackend
,
filters
.
OrderingFilter
)
filterset_class
=
PrecioFilter
ordering_fields
=
(
'usuario'
,
'id'
,)
ordering_fields
=
[
'vigencia_desde'
,
]
ordering
=
'usuario'
queryset
=
Precio
.
objects
.
all
()
...
...
Please
register
or
login
to post a comment