示例#1
0
 def get_reply(self):#得到回复列表
     return Reply.objects(target=self)
示例#2
0
文件: models.py 项目: longshenzhu/COC
 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)
示例#3
0
文件: models.py 项目: longshenzhu/COC
 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)
示例#4
0
文件: models.py 项目: longshenzhu/COC
 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)
示例#5
0
文件: models.py 项目: longshenzhu/COC
 def get_reply_creat_inactive(self):
     from reply.models import Reply
     return Reply.objects(creator=self, is_active=False)
示例#6
0
 def get_reply_corporation_creat_inactive(self):
     from reply.models import Reply
     return Reply.objects(creator__in=self.get_sccard_all(), is_active=False)
示例#7
0
 def get_reply_group_creat_active(self):
     from reply.models import Reply
     return Reply.objects(creator__in=self.get_sgcard_all(), is_active=True)
示例#8
0
 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)
示例#9
0
 def get_reply(self):
     from reply.models import Reply
     return Reply.objects(target=self)
示例#10
0
 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)
示例#11
0
 def get_reply_creat_inactive(self):
     from reply.models import Reply
     return Reply.objects(creator=self, is_active=False)
示例#12
0
 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)
示例#13
0
 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')
示例#14
0
 def get_reply_corporation_creat_inactive(self):
     from reply.models import Reply
     return Reply.objects(creator__in=self.get_sccard_all(),
                          is_active=False)
示例#15
0
 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')
示例#16
0
文件: models.py 项目: lcya86/COC
    def get_reply(self):
        from reply.models import Reply

        return Reply.objects(target=self)
示例#17
0
 def get_reply_group_creat_active(self):
     from reply.models import Reply
     return Reply.objects(creator__in=self.get_sgcard_all(), is_active=True)
示例#18
0
 def get_reply(self):  #得到回复列表
     return Reply.objects(target=self)
示例#19
0
 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')
示例#20
0
 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')