From cb2bf66c3d8435b0b18726b7dc05a025be172570 Mon Sep 17 00:00:00 2001 From: Adnan Kattekaden Date: Sun, 10 Dec 2023 21:48:11 +0530 Subject: [PATCH] college fix --- api/dashboard/college/college_view.py | 4 ++-- api/dashboard/college/serializer.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/dashboard/college/college_view.py b/api/dashboard/college/college_view.py index 506c2575..50827b17 100644 --- a/api/dashboard/college/college_view.py +++ b/api/dashboard/college/college_view.py @@ -18,8 +18,8 @@ def get(self, request, college_code=None): paginated_queryset = CommonUtils.get_paginated_queryset( colleges, request, - search_fields=["org",], - sort_fields=None, + search_fields=["org", ], + sort_fields={'org': 'org'}, ) serializer = CollegeListSerializer( paginated_queryset.get("queryset"), many=True diff --git a/api/dashboard/college/serializer.py b/api/dashboard/college/serializer.py index 82575441..a16be0a7 100644 --- a/api/dashboard/college/serializer.py +++ b/api/dashboard/college/serializer.py @@ -21,7 +21,7 @@ class Meta: model = College fields = [ "id", - # "level", + "level", "org", "number_of_members", "total_karma",