From 59719a57d09b0397bbe19accf06f161fe4c7b1cf Mon Sep 17 00:00:00 2001 From: Adnan Kattekaden Date: Mon, 11 Dec 2023 23:17:54 +0530 Subject: [PATCH] user edit fix --- api/dashboard/user/dash_user_serializer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/dashboard/user/dash_user_serializer.py b/api/dashboard/user/dash_user_serializer.py index 59504685..e00cf758 100644 --- a/api/dashboard/user/dash_user_serializer.py +++ b/api/dashboard/user/dash_user_serializer.py @@ -99,7 +99,7 @@ class UserDetailsSerializer(serializers.ModelSerializer): organizations = serializers.SerializerMethodField(read_only=True) interest_groups = serializers.SerializerMethodField(read_only=True) role = serializers.SerializerMethodField(read_only=True) - district = serializers.CharField(source="district.name", allow_null=True) + district = serializers.CharField(source="district.id", allow_null=True) class Meta: model = User