From 217e4f1c337d61f056ab5fda460c6c379a89c283 Mon Sep 17 00:00:00 2001 From: jdlugosz963 Date: Thu, 16 Dec 2021 07:02:10 +0100 Subject: Repair api bug (post messages) --- chat_api/views.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chat_api') diff --git a/chat_api/views.py b/chat_api/views.py index 6783eba..a8844ad 100644 --- a/chat_api/views.py +++ b/chat_api/views.py @@ -114,4 +114,6 @@ class GmsView(APIView): serializer.is_valid(raise_exception=True) serializer.save() + serializer = GmSerializer(serializer.instance) + return Response(serializer.data) -- cgit v1.2.3