opeartion partial update
This commit is contained in:
parent
0b8884cc2a
commit
d7a6adead7
|
@ -17,4 +17,5 @@ db.sqlite3
|
|||
server/conf.py
|
||||
server/conf.ini
|
||||
sh/*
|
||||
temp/*
|
||||
nohup.out
|
|
@ -24,6 +24,8 @@ def ai_analyse(codes: list, global_img: str, face_img: str = '', is_dahua_pic: b
|
|||
codes: 算法列表
|
||||
global_img (str): 全景图片url地址
|
||||
face_img (str): 人脸图片url地址
|
||||
Return:
|
||||
{'qiping': [[x, y]]}
|
||||
"""
|
||||
results = {} # dict key: 触发的事件标识字符 value: 多个矩形框坐标列表; 有两个图片key值
|
||||
global_img_path = ''
|
||||
|
|
|
@ -36,6 +36,7 @@ class OperationViewSet(CustomModelViewSet):
|
|||
queryset = Operation.objects.all()
|
||||
create_serializer_class = OperationCreateUpdateSerializer
|
||||
update_serializer_class = OperationCreateUpdateSerializer
|
||||
partial_update_serializer_class = OperationPartialUpdateSerializer
|
||||
serializer_class = OperationDetailSerializer
|
||||
retrieve_serializer_class = OperationDetailSerializer
|
||||
select_related_fields = ['area', 'dept_bus', 'dept_ter', 'coordinator']
|
||||
|
|
|
@ -196,4 +196,4 @@ def check_phone_e(phone):
|
|||
re_phone = r'^1\d{10}$'
|
||||
if not re.match(re_phone, phone):
|
||||
raise ValidationError('手机号格式错误')
|
||||
return phone
|
||||
return phone
|
Loading…
Reference in New Issue