async def receive(self, text_data):
text_data_json = json.loads(text_data)
message = text_data_json['message']
new_message = await self.create_new_message(message)
a = await self.create_last_message()
data = {
'last_author': a,
}
@database_sync_to_async
def create_last_message(self):
a = FirstMessages()
return a