app/soc/views/models/base.py
changeset 514 55bd39dab49c
parent 512 aae25d2b4464
child 516 ec1dcd70b97e
equal deleted inserted replaced
513:3c1e16637ad7 514:55bd39dab49c
   122             'soc.views.models.%s.list', 'List %(name_plural)s'),
   122             'soc.views.models.%s.list', 'List %(name_plural)s'),
   123         ]
   123         ]
   124 
   124 
   125     new_params['list_redirect_action'] = '/' + params['url_name'] + '/edit'
   125     new_params['list_redirect_action'] = '/' + params['url_name'] + '/edit'
   126 
   126 
       
   127     new_params['save_message'] = [ugettext_lazy('Profile saved.')]
       
   128     new_params['edit_params'] = {
       
   129         self.DEF_SUBMIT_MSG_PARAM_NAME: self.DEF_SUBMIT_MSG_PROFILE_SAVED,
       
   130         }
       
   131 
   127     self._params = dicts.merge(params, new_params)
   132     self._params = dicts.merge(params, new_params)
   128 
   133 
   129   def public(self, request, page_name=None, params=None, **kwargs):
   134   def public(self, request, page_name=None, params=None, **kwargs):
   130     """Displays the public page for the entity specified by **kwargs.
   135     """Displays the public page for the entity specified by **kwargs.
   131 
   136