From 07f511c1a49dedbdc25a617d234f6457c871d83d Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Mon, 15 Jun 2020 21:44:29 -0500 Subject: [PATCH] Fix wrong person bug in chatbox --- chat_box/consumers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat_box/consumers.py b/chat_box/consumers.py index c38deb5..001b72e 100644 --- a/chat_box/consumers.py +++ b/chat_box/consumers.py @@ -35,7 +35,7 @@ class ChatConsumer(AsyncWebsocketConsumer): message = text_data_json['message'] author = self.scope['user'] - author = Profile.objects.get(id=author.id) + author = Profile.objects.get(user_id=author.id) message['author'] = author.username message['css_class'] = author.css_class