app/soc/logic/models/notification.py
changeset 1106 e14b0995cf29
parent 997 d4ba019f1f8b
child 1307 091a21cf3627
equal deleted inserted replaced
1105:326cd1181c03 1106:e14b0995cf29
    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     # flush the sidebar cache
    61     super(Logic, self)._onCreate(entity)
    62     sidebar.flush(entity.scope.account)
       
    63 
    62 
    64   def _updateField(self, entity, name, value):
    63   def _updateField(self, entity, name, value):
    65     """If unread changes we flush the sidebar cache.
    64     """If unread changes we flush the sidebar cache.
    66     """
    65     """
    67 
    66