app/soc/logic/models/notification.py
changeset 1556 c81109a8a1a1
parent 1517 a467d13e34ea
child 2708 db544114b158
equal deleted inserted replaced
1555:cba45797f4b9 1556:c81109a8a1a1
    56 
    56 
    57     if unread_count == 1:
    57     if unread_count == 1:
    58       # there is only one unread notification so send out an email
    58       # there is only one unread notification so send out an email
    59       notifications.sendNewNotificationMessage(entity)
    59       notifications.sendNewNotificationMessage(entity)
    60 
    60 
       
    61     sidebar.flush(entity.scope.account)
    61     super(Logic, self)._onCreate(entity)
    62     super(Logic, self)._onCreate(entity)
    62 
    63 
    63   def _updateField(self, entity, entity_properties, name):
    64   def _updateField(self, entity, entity_properties, name):
    64     """If unread changes we flush the sidebar cache.
    65     """If unread changes we flush the sidebar cache.
    65     """
    66     """