|
|
@@ -526,6 +526,7 @@ class UserInfo(BaseModelMixin, LensmanTypeBoolMixin):
|
526
|
526
|
|
527
|
527
|
@property
|
528
|
528
|
def admindata(self):
|
|
529
|
+ models = ConsumeInfoSubmitLogInfo.objects.filter(user_id=self.user_id, dupload=False, status=True).values_list('model_uni_name', flat=True)
|
529
|
530
|
return {
|
530
|
531
|
'user_id': self.user_id,
|
531
|
532
|
'nickname': self.nickname,
|
|
|
@@ -541,6 +542,9 @@ class UserInfo(BaseModelMixin, LensmanTypeBoolMixin):
|
541
|
542
|
'created_at': tc.local_string(utc_dt=self.created_at, format='%Y-%m-%d %H:%M:%S'),
|
542
|
543
|
'code_version': self.code_version,
|
543
|
544
|
|
|
545
|
+ #商品信息
|
|
546
|
+ 'models': list(self.models),
|
|
547
|
+
|
544
|
548
|
# 会员信息
|
545
|
549
|
'integral': self.integral,
|
546
|
550
|
'shots_num': self.shots_num,
|