diff --git a/backend/examples/views/example.py b/backend/examples/views/example.py index 2e2af005..7864db96 100644 --- a/backend/examples/views/example.py +++ b/backend/examples/views/example.py @@ -18,7 +18,7 @@ class ExampleList(generics.ListCreateAPIView): serializer_class = ExampleSerializer permission_classes = [IsAuthenticated & (IsProjectAdmin | IsProjectStaffAndReadOnly)] filter_backends = (DjangoFilterBackend, filters.SearchFilter, filters.OrderingFilter) - ordering_fields = ("created_at", "updated_at") + ordering_fields = ("created_at", "updated_at", "score") search_fields = ("text", "filename") model = Example filter_class = ExampleFilter