entity_event/models.py
def unsubscriptions(self):
        """Returns the unsubscribed entity IDs for each source as a dict,
        keyed on source_id.

        :rtype: Dictionary
        :returns: A dictionary of the form ``{source_id: entities}``
            where ``entities`` is a list of entities unsubscribed from
            that source for this medium.
        """
        unsubscriptions = defaultdict(list)
        for unsub in Unsubscription.objects.filter(medium=self).values('entity', 'source'):
            unsubscriptions[unsub['source']].append(unsub['entity'])
        return unsubscriptions
Returns the unsubscribed entity IDs for each source as a dict,
        keyed on source_id.

        :rtype: Dictionary
        :returns: A dictionary of the form ``{source_id: entities}``
            where ``entities`` is a list of entities unsubscribed from
            that source for this medium.
        
Returns the unsubscribed entity IDs for each source as a dict,
keyed on source_id.
Returns the unsubscribed entity IDs for each source as a dict keyed on source_id .
def unsubscriptions(self):
        unsubscriptions = defaultdict(list)
        for unsub in Unsubscription.objects.filter(medium=self).values('entity', 'source'):
            unsubscriptions[unsub['source']].append(unsub['entity'])
        return unsubscriptions
def unsubscriptions ( self ) : unsubscriptions = defaultdict ( list ) for unsub in Unsubscription . objects . filter ( medium = self ) . values ( 'entity' , 'source' ) : unsubscriptions [ unsub [ 'source' ] ] . append ( unsub [ 'entity' ] ) return unsubscriptions
Returns the unsubscribed entity IDs for each source as a dict,
keyed on source_id.
Returns the unsubscribed entity IDs for each source as a dict keyed on source_id .
"""Returns the unsubscribed entity IDs for each source as a dict,
        keyed on source_id.

        :rtype: Dictionary
        :returns: A dictionary of the form ``{source_id: entities}``
            where ``entities`` is a list of entities unsubscribed from
            that source for this medium.
        """
A dictionary of the form ``{source_id: entities}``
where ``entities`` is a list of entities unsubscribed from
that source for this medium.
A dictionary of the form ` ` { source_id : entities } ` ` where ` ` entities ` ` is a list of entities unsubscribed from that source for this medium .
Dictionary
self