AttributeError: 'ModelInfo' object has no attribute 'model_imgs'

Brightcells 7 anos atrás
pai
commit
a272ee8787
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      api/encrypt_views.py

+ 1 - 1
api/encrypt_views.py

@@ -75,7 +75,7 @@ def decrypt(request):
75 75
     return response(200, data={
76 76
         'plaintext': plaintext,
77 77
         'logo_url': brand.brand_logo_url if brand else '',
78
-        'model_imgs': model.model_imgs if model else [],
78
+        'model_imgs': model.images if model else [],
79 79
         'goodsInfo': {
80 80
             'Brand': brand.brand_name if brand else '',
81 81
             'Model': model.model_name if model else '',