entity_event/models.py
def subscribed_entities(self):
        """Return a queryset of all subscribed entities.

        This will be a single entity in the case of an individual
        subscription, otherwise it will be all the entities in the
        group subscription.

        :rtype: EntityQuerySet
        :returns: A QuerySet of all the entities that are a part of
            this subscription.
        """
        if self.sub_entity_kind is not None:
            sub_entities = self.entity.sub_relationships.filter(
                sub_entity__entity_kind=self.sub_entity_kind).values_list('sub_entity')
            entities = Entity.objects.filter(id__in=sub_entities)
        else:
            entities = Entity.objects.filter(id=self.entity.id)
        return entities
Return a queryset of all subscribed entities.

        This will be a single entity in the case of an individual
        subscription, otherwise it will be all the entities in the
        group subscription.

        :rtype: EntityQuerySet
        :returns: A QuerySet of all the entities that are a part of
            this subscription.
        
Return a queryset of all subscribed entities.
This will be a single entity in the case of an individual
subscription, otherwise it will be all the entities in the
group subscription.
Return a queryset of all subscribed entities . This will be a single entity in the case of an individual subscription otherwise it will be all the entities in the group subscription .
def subscribed_entities(self):
        if self.sub_entity_kind is not None:
            sub_entities = self.entity.sub_relationships.filter(
                sub_entity__entity_kind=self.sub_entity_kind).values_list('sub_entity')
            entities = Entity.objects.filter(id__in=sub_entities)
        else:
            entities = Entity.objects.filter(id=self.entity.id)
        return entities
def subscribed_entities ( self ) : if self . sub_entity_kind is not None : sub_entities = self . entity . sub_relationships . filter ( sub_entity__entity_kind = self . sub_entity_kind ) . values_list ( 'sub_entity' ) entities = Entity . objects . filter ( id__in = sub_entities ) else : entities = Entity . objects . filter ( id = self . entity . id ) return entities
Return a queryset of all subscribed entities.
Return a queryset of all subscribed entities .
"""Return a queryset of all subscribed entities.

        This will be a single entity in the case of an individual
        subscription, otherwise it will be all the entities in the
        group subscription.

        :rtype: EntityQuerySet
        :returns: A QuerySet of all the entities that are a part of
            this subscription.
        """
A QuerySet of all the entities that are a part of
this subscription.
A QuerySet of all the entities that are a part of this subscription .
EntityQuerySet
self