Enzo Yair

correcion de filtros en la vista

... ... @@ -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
... ...