ModelID/model_id

Kimi.Huang 5 anos atrás
pai
commit
c6f3176f03
2 arquivos alterados com 2 adições e 0 exclusões
  1. 1 0
      api/encrypt_views.py
  2. 1 0
      mch/models.py

+ 1 - 0
api/encrypt_views.py

@@ -136,6 +136,7 @@ def decrypt(request):
136 136
             'BrandID': brand_pk,
137 137
             'Brand': brand.brand_name if brand else '',
138 138
             'ModelID': model_pk,
139
+            'model_id': model.model_id if model else '',
139 140
             'Model': (model.model_full_name or model.model_name) if model else '',
140 141
             'DistributorID': distributor_pk,
141 142
             'SerialNo': sn,

+ 1 - 0
mch/models.py

@@ -253,6 +253,7 @@ class ModelInfo(BaseModelMixin):
253 253
     def admindata(self):
254 254
         return {
255 255
             'jancode': self.jancode,
256
+            'ModelID': self.pk,
256 257
             'model_id': self.model_id,
257 258
             'model_name': self.model_name,
258 259
             'model_uni_name': self.model_uni_name,