:art: Add complement_code

huangqimin001 4 years ago
parent
commit
66b3b9f961
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/complement_views.py

+ 1 - 1
api/complement_views.py

@@ -21,7 +21,7 @@ def complement_code(request):
21 21
     shot_path = request.POST.get('shot_path', '')
22 22
     invoice_path = request.POST.get('invoice_path', '')
23 23
 
24
-    log = ComplementCodeLogInfo.objects.update_or_create(user_id=user_id, log_id=log_id, defaults={
24
+    log, _ = ComplementCodeLogInfo.objects.update_or_create(user_id=user_id, log_id=log_id, defaults={
25 25
         'name': name,
26 26
         'phone': phone,
27 27
         'model_id': model_id,