def get_inactive_topic_list(self):#得到删除主题列表 from accounts.models import S_C_Card creator = S_C_Card.objects(corporation=self).all() from forum.models import Topic return Topic.objects(creator__in=creator,is_active=False)
def get_user_list(self): # 得到社团所有成员列表 from accounts.models import S_C_Card return S_C_Card.objects(corporation=self, is_active=True).scalar('user')
def get_topic_list(self): # 得到论坛主题列表 from accounts.models import S_C_Card creator = S_C_Card.objects(corporation=self).all() from forum.models import Topic return Topic.objects(creator__in=creator)
def get_member_list(self):#得到社团普通成员列表 from accounts.models import S_C_Card return S_C_Card.objects(corporation=self, is_active=True,is_admin=False).scalar('user')