try to fix chat bug
This commit is contained in:
parent
07f511c1a4
commit
77eae18581
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ class ChatConsumer(AsyncWebsocketConsumer):
|
|||
message = text_data_json['message']
|
||||
|
||||
author = self.scope['user']
|
||||
author = Profile.objects.get(user_id=author.id)
|
||||
author = Profile.objects.get(user=author)
|
||||
|
||||
message['author'] = author.username
|
||||
message['css_class'] = author.css_class
|
||||
|
|
Loading…
Reference in a new issue