models.py
def _get_last_change(self):
        'Return last change data in the channel'
        last_change = datetime.datetime(1, 1, 1, tzinfo=utc)
        for m in self.message.all():
            if m.last_change > last_change:
                last_change = m.last_change
        if datetime.datetime(1, 1, 1, tzinfo=utc) == last_change:
            return None
        else:
            return last_change
Return last change data in the channel
Return last change data in the channel
Return last change data in the channel
def _get_last_change(self):
        last_change = datetime.datetime(1, 1, 1, tzinfo=utc)
        for m in self.message.all():
            if m.last_change > last_change:
                last_change = m.last_change
        if datetime.datetime(1, 1, 1, tzinfo=utc) == last_change:
            return None
        else:
            return last_change
def _get_last_change ( self ) : last_change = datetime . datetime ( 1 , 1 , 1 , tzinfo = utc ) for m in self . message . all ( ) : if m . last_change > last_change : last_change = m . last_change if datetime . datetime ( 1 , 1 , 1 , tzinfo = utc ) == last_change : return None else : return last_change
Return last change data in the channel
Return last change data in the channel
'Return last change data in the channel'
self