equal
deleted
inserted
replaced
97 rights = {} |
97 rights = {} |
98 |
98 |
99 params['name'] = "Sponsor" |
99 params['name'] = "Sponsor" |
100 params['name_short'] = "Sponsor" |
100 params['name_short'] = "Sponsor" |
101 params['name_plural'] = "Sponsors" |
101 params['name_plural'] = "Sponsors" |
|
102 # TODO(pawel.solyga): create url_name and module_name automatically |
|
103 # from name. Make that work for all other Views too. Hopefully |
|
104 # solution that will be implemented in base View. |
|
105 params['url_name'] = "sponsor" |
|
106 params['module_name'] = "sponsor" |
102 |
107 |
103 params['edit_form'] = EditForm |
108 params['edit_form'] = EditForm |
104 params['create_form'] = CreateForm |
109 params['create_form'] = CreateForm |
105 |
110 |
106 # TODO(tlarsen) Add support for Django style template lookup |
111 # TODO(tlarsen): Add support for Django style template lookup |
107 params['edit_template'] = 'soc/sponsor/edit.html' |
112 params['edit_template'] = 'soc/sponsor/edit.html' |
108 params['public_template'] = 'soc/group/public.html' |
113 params['public_template'] = 'soc/group/public.html' |
109 params['list_template'] = 'soc/models/list.html' |
114 params['list_template'] = 'soc/models/list.html' |
110 |
115 |
111 params['lists_template'] = { |
116 params['lists_template'] = { |
113 'list_pagination': 'soc/list/list_pagination.html', |
118 'list_pagination': 'soc/list/list_pagination.html', |
114 'list_row': 'soc/group/list/group_row.html', |
119 'list_row': 'soc/group/list/group_row.html', |
115 'list_heading': 'soc/group/list/group_heading.html', |
120 'list_heading': 'soc/group/list/group_heading.html', |
116 } |
121 } |
117 |
122 |
118 params['delete_redirect'] = '/sponsor/list' |
123 params['delete_redirect'] = '/' + params['url_name'] + '/list' |
119 |
124 |
120 params['save_message'] = [ugettext_lazy('Profile saved.')] |
125 params['save_message'] = [ugettext_lazy('Profile saved.')] |
121 |
126 |
122 params['edit_params'] = { |
127 params['edit_params'] = { |
123 self.DEF_SUBMIT_MSG_PARAM_NAME: self.DEF_SUBMIT_MSG_PROFILE_SAVED, |
128 self.DEF_SUBMIT_MSG_PARAM_NAME: self.DEF_SUBMIT_MSG_PROFILE_SAVED, |