@@ -166,6 +166,7 @@ def decrypt(request): |
||
166 | 166 |
'Model': (model.model_full_name or model.model_name) if model else '', |
167 | 167 |
'DistributorID': distributor_pk, |
168 | 168 |
'SerialNo': sn, |
169 |
+ 'img': model.imgdata1 |
|
169 | 170 |
}, |
170 | 171 |
'has_unexpired_activity': has_unexpired_activity, |
171 | 172 |
'coupon_info': coupon_info, |
@@ -251,6 +252,7 @@ def decrypt2(request): |
||
251 | 252 |
'Model': (model.model_full_name or model.model_name) if model else '', |
252 | 253 |
'DistributorID': distributor_pk, |
253 | 254 |
'SerialNo': sn, |
255 |
+ 'img': model.imgdata1, |
|
254 | 256 |
}, |
255 | 257 |
'has_unexpired_activity': has_unexpired_activity, |
256 | 258 |
'coupon_info': coupon_info, |
@@ -214,6 +214,10 @@ class ModelInfo(BaseModelMixin): |
||
214 | 214 |
} |
215 | 215 |
|
216 | 216 |
@property |
217 |
+ def imgdata1(self): |
|
218 |
+ return self.shot_member_image_url |
|
219 |
+ |
|
220 |
+ @property |
|
217 | 221 |
def images(self): |
218 | 222 |
return [self.imgdata] if self.image else [] |
219 | 223 |
# imgs = ModelImageInfo.objects.filter(model_id=self.model_id, status=True) |