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

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