equal
deleted
inserted
replaced
166 'soc.views.models.%(module_name)s.public', 'Show %(name_short)s')] |
166 'soc.views.models.%(module_name)s.public', 'Show %(name_short)s')] |
167 |
167 |
168 if not params.get('no_admin'): |
168 if not params.get('no_admin'): |
169 new_params['django_patterns_defaults'] += [ |
169 new_params['django_patterns_defaults'] += [ |
170 (r'^%(url_name)s/(?P<access_type>admin)/%(key_fields)s$', |
170 (r'^%(url_name)s/(?P<access_type>admin)/%(key_fields)s$', |
171 'soc.views.models.%(module_name)s.admin', 'Show %(name_short)s (admin)')] |
171 'soc.views.models.%(module_name)s.admin', |
|
172 'Show %(name_short)s (admin)')] |
172 |
173 |
173 if not params.get('no_create_raw'): |
174 if not params.get('no_create_raw'): |
174 new_params['django_patterns_defaults'] += [ |
175 new_params['django_patterns_defaults'] += [ |
175 (r'^%(url_name)s/(?P<access_type>create)$', |
176 (r'^%(url_name)s/(?P<access_type>create)$', |
176 'soc.views.models.%(module_name)s.create', 'Create %(name_short)s')] |
177 'soc.views.models.%(module_name)s.create', 'Create %(name_short)s')] |
211 'soc.views.models.%(module_name)s.list', 'List %(name_plural)s')] |
212 'soc.views.models.%(module_name)s.list', 'List %(name_plural)s')] |
212 |
213 |
213 if params.get('sans_link_id_public_list'): |
214 if params.get('sans_link_id_public_list'): |
214 new_params['django_patterns_defaults'] += [ |
215 new_params['django_patterns_defaults'] += [ |
215 (r'^%(url_name)s/(?P<access_type>list_public)/%(sans_link_id)s$', |
216 (r'^%(url_name)s/(?P<access_type>list_public)/%(sans_link_id)s$', |
216 'soc.views.models.%(module_name)s.list_public', 'List %(name_plural)s')] |
217 'soc.views.models.%(module_name)s.list_public', |
|
218 'List %(name_plural)s')] |
217 |
219 |
218 new_params['public_template'] = 'soc/%(module_name)s/public.html' % params |
220 new_params['public_template'] = 'soc/%(module_name)s/public.html' % params |
219 new_params['export_template'] = 'soc/%(module_name)s/export.html' % params |
221 new_params['export_template'] = 'soc/%(module_name)s/export.html' % params |
220 new_params['create_template'] = 'soc/models/edit.html' |
222 new_params['create_template'] = 'soc/models/edit.html' |
221 new_params['edit_template'] = 'soc/models/edit.html' |
223 new_params['edit_template'] = 'soc/models/edit.html' |