We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b635125 commit ca154fcCopy full SHA for ca154fc
classroom/consumers.py
@@ -62,6 +62,7 @@ async def receive(self, text_data):
62
"type": 'chat_message',
63
"id": message.id,
64
"user": message.user.username,
65
+ "date": message.date.strftime("%Y-%m-%d"),
66
"avatar": 'https://static.vecteezy.com/system/resources/previews/024/983/914/non_2x/simple-user-default-icon-free-png.png',
67
"text": message.text,
68
}
0 commit comments