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
5056d3a6
Commit
5056d3a6
authored
Aug 16, 2023
by
周田
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:注释
parent
9e879fb6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
serializers.py
device_data_op/serializers.py
+3
-3
No files found.
device_data_op/serializers.py
View file @
5056d3a6
...
...
@@ -21,7 +21,7 @@ class TableSoftLimitAngleSerializer(ModelSerializer):
"""
当传过来的值为 none 时,则在数据库里存一个空值
@
param value: 通过基本校验之后的值
:
param value: 通过基本校验之后的值
"""
if
value
==
"none"
:
return
""
...
...
@@ -38,7 +38,7 @@ class TableXproAllDevinfoSerializer(ModelSerializer):
"""
当传过来的值为 none 时,则在数据库里存一个空值
@
param value: 通过基本校验之后的值
:
param value: 通过基本校验之后的值
"""
if
value
==
"none"
:
return
""
...
...
@@ -49,7 +49,7 @@ class TableXproAllDevinfoSerializer(ModelSerializer):
校验字段,在进行基础校验之后,如果字段名称为下面的字段,
且当传过来的值为 none 时,存一个空值
@
param attrs: 通过基本校验之后的值
:
param attrs: 通过基本校验之后的值
"""
for
field_name
,
value
in
attrs
.
items
():
if
field_name
in
([
'cmd_excel_path'
,
'udp_ip_src'
,
'udp_ip_dst'
,
...
...
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