소스 검색

Merge remote-tracking branch 'remotes/origin/dev' into test

tanghongbin 5 년 전
부모
커밋
8c717b1398
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      Controller/UserBrandControllerV2.py

+ 2 - 1
Controller/UserBrandControllerV2.py

@@ -51,7 +51,8 @@ class UserBrandV2(View):
         if userID and deviceSupplier and deviceModel:
             ub_qs = User_Brand.objects.filter(userID=userID)
             if ub_qs.exists():
-                return response.json(174)
+                ub_qs.update(deviceSupplier=deviceSupplier, deviceModel=deviceModel)
+                return response.json(0)
             else:
                 user = Device_User.objects.filter(userID=userID)
                 if not user.exists():