app/soc/views/models/role.py
changeset 1196 11dbdf12d7c2
parent 1195 cbef45d75942
child 1218 569a3fe9cb88
equal deleted inserted replaced
1195:cbef45d75942 1196:11dbdf12d7c2
   559     
   559     
   560     if 'status' in get_dict.keys():
   560     if 'status' in get_dict.keys():
   561       if get_dict['status'] in ['group_accepted', 'rejected', 'ignored']:
   561       if get_dict['status'] in ['group_accepted', 'rejected', 'ignored']:
   562         # update the request_entity and redirect away from this page
   562         # update the request_entity and redirect away from this page
   563         request_status = get_dict['status']
   563         request_status = get_dict['status']
   564         request_logic.logic.updateEntityProperties(request_entity, {
   564 
   565             'status': get_dict['status']})
   565         # only update when the status is changing
   566 
   566         if request_status != request_entity.status:
   567         if request_status == 'group_accepted':
   567           request_logic.logic.updateEntityProperties(request_entity, {
   568           notifications_helper.sendInviteNotification(request_entity)
   568               'status': get_dict['status']})
       
   569 
       
   570           if request_status == 'group_accepted':
       
   571             notifications_helper.sendInviteNotification(request_entity)
   569 
   572 
   570         group_view = params.get('group_view')
   573         group_view = params.get('group_view')
   571         if not group_view:
   574         if not group_view:
   572           return http.HttpResponseRedirect('/')
   575           return http.HttpResponseRedirect('/')
   573         else:
   576         else: