app/soc/views/models/document.py
changeset 502 e1e24c0a4e82
parent 499 d22e4fe8e64b
child 507 3603fdafabf7
equal deleted inserted replaced
501:be89bf307478 502:e1e24c0a4e82
    97     rights = {}
    97     rights = {}
    98 
    98 
    99     params['name'] = "Document"
    99     params['name'] = "Document"
   100     params['name_short'] = "Document"
   100     params['name_short'] = "Document"
   101     params['name_plural'] = "Documents"
   101     params['name_plural'] = "Documents"
       
   102     params['url_name'] = "document"
       
   103     params['module_name'] = "document"
   102 
   104 
   103     params['edit_form'] = EditForm
   105     params['edit_form'] = EditForm
   104     params['create_form'] = CreateForm
   106     params['create_form'] = CreateForm
   105 
   107 
   106     # TODO(tlarsen) Add support for Django style template lookup
   108     # TODO(tlarsen) Add support for Django style template lookup
   113       'list_pagination': 'soc/list/list_pagination.html',
   115       'list_pagination': 'soc/list/list_pagination.html',
   114       'list_row': 'soc/document/list/docs_row.html',
   116       'list_row': 'soc/document/list/docs_row.html',
   115       'list_heading': 'soc/document/list/docs_heading.html',
   117       'list_heading': 'soc/document/list/docs_heading.html',
   116     }
   118     }
   117 
   119 
   118     params['delete_redirect'] = '/document/list'
   120     params['delete_redirect'] = '/' + params['url_name'] + '/list'
   119 
   121 
   120     params['save_message'] = [ugettext_lazy('Profile saved.')]
   122     params['save_message'] = [ugettext_lazy('Profile saved.')]
   121 
   123 
   122     params['edit_params'] = {
   124     params['edit_params'] = {
   123         self.DEF_SUBMIT_MSG_PARAM_NAME: self.DEF_SUBMIT_MSG_PROFILE_SAVED,
   125         self.DEF_SUBMIT_MSG_PARAM_NAME: self.DEF_SUBMIT_MSG_PROFILE_SAVED,