app/soc/views/models/request.py
changeset 586 a4a36b06a870
parent 572 1b3e7280743a
child 587 7504504209a3
equal deleted inserted replaced
585:903890857ed8 586:a4a36b06a870
    33 from soc.logic import validate
    33 from soc.logic import validate
    34 from soc.logic.models import sponsor as sponsor_logic
    34 from soc.logic.models import sponsor as sponsor_logic
    35 from soc.logic.models import user as user_logic
    35 from soc.logic.models import user as user_logic
    36 from soc.views import helper
    36 from soc.views import helper
    37 from soc.views import out_of_band
    37 from soc.views import out_of_band
       
    38 from soc.views.helper import access
    38 from soc.views.helper import widgets
    39 from soc.views.helper import widgets
    39 from soc.views.models import base
    40 from soc.views.models import base
    40 from soc.views.models import role as role_view
    41 from soc.views.models import role as role_view
    41 
    42 
    42 import soc.models.request
    43 import soc.models.request
   109     params['module_name'] = "request"
   110     params['module_name'] = "request"
   110 
   111 
   111     params['edit_form'] = EditForm
   112     params['edit_form'] = EditForm
   112     params['create_form'] = CreateForm
   113     params['create_form'] = CreateForm
   113 
   114 
   114     params['sidebar_defaults'] = [('/%s/list', 'List %(name_plural)s')]
   115     params['sidebar_defaults'] = [('/%s/list', 'List %(name_plural)s', 'list')]
   115 
   116 
   116     params['delete_redirect'] = '/' + params['url_name'] + '/list'
   117     params['delete_redirect'] = '/' + params['url_name'] + '/list'
   117     params['create_redirect'] = '/' + params['url_name']
   118     params['create_redirect'] = '/' + params['url_name']
   118 
   119 
   119     params['save_message'] = [ugettext_lazy('Request saved.')]
   120     params['save_message'] = [ugettext_lazy('Request saved.')]