Example #1
0
 def get_reply(self):#得到回复列表
     return Reply.objects(target=self)
Example #2
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)
Example #3
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)
Example #4
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)
Example #5
0
 def get_reply_creat_inactive(self):
     from reply.models import Reply
     return Reply.objects(creator=self, is_active=False)
Example #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)
Example #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)
Example #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)
Example #9
0
 def get_reply(self):
     from reply.models import Reply
     return Reply.objects(target=self)
Example #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)
Example #11
0
 def get_reply_creat_inactive(self):
     from reply.models import Reply
     return Reply.objects(creator=self, is_active=False)
Example #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)
Example #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')
Example #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)
Example #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')
Example #16
0
File: models.py Project: lcya86/COC
    def get_reply(self):
        from reply.models import Reply

        return Reply.objects(target=self)
Example #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)
Example #18
0
 def get_reply(self):  #得到回复列表
     return Reply.objects(target=self)
Example #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')
Example #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')