:art: cardata

huangqimin %!s(int64=5) %!d(string=hace) años
padre
commit
57a06bc193
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      account/models.py

+ 8 - 0
account/models.py

@@ -491,6 +491,14 @@ class UserInfo(BaseModelMixin, LensmanTypeBoolMixin):
491 491
             'level': self.level,
492 492
         }
493 493
 
494
+    @property
495
+    def cardata(self):
496
+        return {
497
+            'brand_id': self.brand_id,
498
+            'card_id': self.membercardid,
499
+            'code': self.memberusercardcode,
500
+        }
501
+
494 502
 
495 503
 class UserLoginLogInfo(BaseModelMixin):
496 504
     SUCCESS = 0