Enzo Yair

se agrego el orden

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