fix bug

FFIB %!s(int64=5) %!d(string=hace) años
padre
commit
74f06b868b
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      page/sale_views.py

+ 1 - 1
page/sale_views.py

@@ -104,7 +104,7 @@ def clerk_sale_submit_api(request):
104 104
     #是否是新二维码,即统览码2
105 105
     code_version = 1
106 106
     code = filter(lambda ch: ch in '0123456789', serialNo)
107
-    encrypt_logs = MchInfoEncryptLogInfo.objects.filter(model_id=model.pk, sn=code)
107
+    encrypt_logs = MchInfoEncryptLogInfo.objects.filter(model_pk=model.pk, sn=code)
108 108
 
109 109
     if encrypt_logs:
110 110
         code_version = encrypt_logs[0].version