def get_reply(self):#得到回复列表 return Reply.objects(target=self)
def get_reply_reply_inactive(self): from reply.models import Reply return Reply.objects(creator=self, is_active=True).distinct('target').objects(_cls=Reply, is_active=False)
def get_activity_reply_active(self): from reply.models import Reply from activity.models import Activity return Reply.objects(creator=self, is_active=True).distinct('target').objects(_cls=Activity, is_active=True)
def get_topic_reply_inactive(self): from reply.models import Reply from topic.models import Topic return Reply.objects(creator=self, is_active=True).distinct('target').objects(_cls=Topic, is_active=False)
def get_reply_creat_inactive(self): from reply.models import Reply return Reply.objects(creator=self, is_active=False)
def get_reply_corporation_creat_inactive(self): from reply.models import Reply return Reply.objects(creator__in=self.get_sccard_all(), is_active=False)
def get_reply_group_creat_active(self): from reply.models import Reply return Reply.objects(creator__in=self.get_sgcard_all(), is_active=True)
def get_reply_reply_inactive(self): from reply.models import Reply return Reply.objects(creator=self, is_active=True).distinct('target').objects( _cls=Reply, is_active=False)
def get_reply(self): from reply.models import Reply return Reply.objects(target=self)
def get_topic_reply_inactive(self): from reply.models import Reply from topic.models import Topic return Reply.objects(creator=self, is_active=True).distinct('target').objects( _cls=Topic, is_active=False)
def get_reply_creat_inactive(self): from reply.models import Reply return Reply.objects(creator=self, is_active=False)
def get_activity_reply_active(self): from reply.models import Reply from activity.models import Activity return Reply.objects(creator=self, is_active=True).distinct('target').objects( _cls=Activity, is_active=True)
def get_reply_corporation_reply_active(self): from reply.models import Reply return Reply.objects(creator__in=self.get_sccard_all(), is_active=True).distinct('target')
def get_reply_corporation_creat_inactive(self): from reply.models import Reply return Reply.objects(creator__in=self.get_sccard_all(), is_active=False)
def get_topic_group_reply_active(self):#我回复的小组话题(active) from reply.models import Reply return Reply.objects(creator__in=self.get_sgcard_all(), is_active=True).distinct('target')
def get_reply(self): from reply.models import Reply return Reply.objects(target=self)
def get_reply_group_creat_active(self): from reply.models import Reply return Reply.objects(creator__in=self.get_sgcard_all(), is_active=True)
def get_reply(self): #得到回复列表 return Reply.objects(target=self)
def get_reply_corporation_reply_active(self): from reply.models import Reply return Reply.objects(creator__in=self.get_sccard_all(), is_active=True).distinct('target')
def get_topic_group_reply_active(self): #我回复的小组话题(active) from reply.models import Reply return Reply.objects(creator__in=self.get_sgcard_all(), is_active=True).distinct('target')