app/soc/views/models/club_app.py
changeset 821 5afe16b2e86b
parent 818 ddd102e82107
child 823 c11a103f103d
equal deleted inserted replaced
820:56eec9c8bb47 821:5afe16b2e86b
    27 from django.utils.translation import ugettext_lazy
    27 from django.utils.translation import ugettext_lazy
    28 
    28 
    29 from soc.logic import accounts
    29 from soc.logic import accounts
    30 from soc.logic import cleaning
    30 from soc.logic import cleaning
    31 from soc.logic import dicts
    31 from soc.logic import dicts
       
    32 from soc.logic.helper import notifications
    32 from soc.logic.models import user as user_logic
    33 from soc.logic.models import user as user_logic
    33 from soc.models import group_app as group_app_model
    34 from soc.models import group_app as group_app_model
    34 from soc.views import helper
    35 from soc.views import helper
    35 from soc.views import out_of_band
    36 from soc.views import out_of_band
    36 from soc.views.helper import access
    37 from soc.views.helper import access
   198 
   199 
   199       if accepted_value == 'true':
   200       if accepted_value == 'true':
   200         # the application has been accepted
   201         # the application has been accepted
   201         fields['accepted'] = True
   202         fields['accepted'] = True
   202         fields['reviewed'] = True
   203         fields['reviewed'] = True
       
   204         notifications.sendNewClubNotification(entity)
   203       elif accepted_value == 'false':
   205       elif accepted_value == 'false':
   204         # the application has been denied
   206         # the application has been denied
   205         fields['accepted'] = False
   207         fields['accepted'] = False
   206         fields['reviewed'] = True
   208         fields['reviewed'] = True
   207 
   209