From ebfe5a3db2e7fea8c9b28d3f3e9bc093e17c7eec Mon Sep 17 00:00:00 2001 From: Ali Maktabi Date: Thu, 31 Oct 2024 15:47:13 +0330 Subject: [PATCH] added is_connected to readonly fields --- telegram/serializers.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/telegram/serializers.py b/telegram/serializers.py index 99bb07e..fdc5f4d 100644 --- a/telegram/serializers.py +++ b/telegram/serializers.py @@ -10,9 +10,4 @@ class TelegramConnectionSerializer(BaseThirdPartyConnectionSerializer): class Meta: model = TelegramConnection fields = "__all__" - read_only_fields = [ - "created_on", - "pk", - "user_profile", - "title", - ] + read_only_fields = ["created_on", "pk", "user_profile", "title", "is_connected"]