Commit 68db30ef authored by Fernando Ribeiro's avatar Fernando Ribeiro
Browse files

Feat: Ordering queryset in BasicClassViewSet

parent b556cf22
......@@ -13,7 +13,7 @@ from courses.classes.serializers import (
class BasicClassViewSet(viewsets.ReadOnlyModelViewSet):
queryset = Class.objects.all()
queryset = Class.objects.all().order_by('-name')
serializer_class = BasicClassSerializer
filter_fields = ['course']
permission_classes = [IsAuthenticated]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment