Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue_django_test
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周田
vue_django_test
Commits
1f2981b5
Commit
1f2981b5
authored
Aug 16, 2023
by
周田
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mod:测试的小修改
parent
0576cf71
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
15 deletions
+6
-15
consumers.py
chat/consumers.py
+2
-2
models.py
protocol_version_manage/models.py
+4
-13
No files found.
chat/consumers.py
View file @
1f2981b5
...
...
@@ -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)
protocol_version_manage/models.py
View file @
1f2981b5
...
...
@@ -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
'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment