Commit 5056d3a6 by 周田

fix:注释

parent 9e879fb6
......@@ -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',
......
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