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-01 12:23:49 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ad1f13a099579332743db3dc4623737ed0b18b1a
ad1f13a0
1 parent
c11bc799
correcion de filtros en la vista
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
project/apps/edicto/api.py
project/apps/edicto/api.py
View file @
ad1f13a
...
...
@@ -7,7 +7,6 @@ from datetime import datetime
from
.models
import
Edicto
,
Precio
from
.serializer
import
EdictoSerializer
,
PrecioSerializer
from
usuario.serializers
import
UsuarioListaSerializer
from
.filters
import
EdictoFilter
,
PrecioFilter
from
.pagination
import
CustomPagination
from
.permissions
import
IsAdminOrAuthorized
...
...
@@ -27,7 +26,7 @@ class EdictoViewSet(mixins.CreateModelMixin,
filter_backends
=
(
DjangoFilterBackend
,
filters
.
OrderingFilter
)
filterset_class
=
EdictoFilter
queryset
=
Edicto
.
objects
.
all
()
ordering_fields
=
(
'usuario
__usuario
'
,)
ordering_fields
=
(
'usuario'
,)
ordering
=
'usuario'
pagination_class
=
CustomPagination
...
...
Please
register
or
login
to post a comment