Example #1
0
 def get_user_by_email(self, email):
     self.user =  User.objects(email=email).first()
     return self.user
Example #2
0
 def get_users(self, id_list):
     return User.objects(uid__in=id_list).select_related()
Example #3
0
 def get_user_by_uid(self, uid):
     if self.user:
         return self.user
     return User.objects(uid=uid).first()