Commit 1f2981b5 by 周田

mod:测试的小修改

parent 0576cf71
......@@ -75,7 +75,7 @@ class ChatConsumer(AsyncWebsocketConsumer):
message = event["message"]
# Send message to WebSocket
# await self.send(text_data=json.dumps({"message": message}))
await self.send(bytes_data=message)
await self.send(text_data=json.dumps({"message": message}))
# await self.send(bytes_data=message)
......@@ -49,20 +49,11 @@ class CurrentDevVersion(models.Model):
db_table = 'CurrentDevVersion'
class AllProtocolChangeLog(models.Model):
id = models.AutoField(primary_key=True) # Field name made lowercase.
protocol_name = models.TextField() # Field name made lowercase.
log = models.TextField()
class Meta:
db_table = 'AllProtocolChangeLog'
class Test(models.Model):
class AllProtocolVersion(models.Model):
id = models.AutoField(primary_key=True)
json = models.TextField()
protocol_name = models.TextField()
vesrions_path = models.TextField()
class Meta:
db_table = 'Test'
db_table = 'AllProtocolVersion'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment