exists

Brightcells %!s(int64=7) %!d(string=hace) años
padre
commit
56e5ca1bc5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      account/models.py

+ 1 - 1
account/models.py

@@ -365,7 +365,7 @@ class UserInfo(BaseModelMixin, LensmanTypeBoolMixin):
365 365
             'username': self.username,
366 366
             'nickname': self.nickname,
367 367
             'avatar': self.avatar,
368
-            'saleclerk': SaleclerkInfo.objects.filter(unionid=self.unionid, status=True),
368
+            'saleclerk': SaleclerkInfo.objects.filter(unionid=self.unionid, status=True).exists(),
369 369
         }
370 370
 
371 371