equal
deleted
inserted
replaced
94 |
94 |
95 if 'url_name' not in params: |
95 if 'url_name' not in params: |
96 params['url_name'] = params['module_name'] |
96 params['url_name'] = params['module_name'] |
97 |
97 |
98 if 'document_prefix' not in params: |
98 if 'document_prefix' not in params: |
99 params['document_prefix'] = params['name_short'].lower() |
99 params['document_prefix'] = params['url_name'] |
100 |
100 |
101 # Do not expand edit_redirect to allow it to be overriden without suffix |
101 # Do not expand edit_redirect to allow it to be overriden without suffix |
102 new_params['edit_redirect'] = '/%(url_name)s/edit/%(suffix)s' |
102 new_params['edit_redirect'] = '/%(url_name)s/edit/%(suffix)s' |
103 new_params['missing_redirect'] = '/%(url_name)s/create' % params |
103 new_params['missing_redirect'] = '/%(url_name)s/create' % params |
104 new_params['delete_redirect'] = '/%(url_name)s/list' % params |
104 new_params['delete_redirect'] = '/%(url_name)s/list' % params |