Ticket #8971: admindocs-link_base.diff
File admindocs-link_base.diff, 2.0 KB (added by , 16 years ago) |
---|
-
django/contrib/admindocs/views.py
54 54 for tag_name, tag_func in library.tags.items(): 55 55 title, body, metadata = utils.parse_docstring(tag_func.__doc__) 56 56 if title: 57 title = utils.parse_rst(title, 'tag', _('tag:') + tag_name )57 title = utils.parse_rst(title, 'tag', _('tag:') + tag_name, link_base='..') 58 58 if body: 59 body = utils.parse_rst(body, 'tag', _('tag:') + tag_name )59 body = utils.parse_rst(body, 'tag', _('tag:') + tag_name, link_base='..') 60 60 for key in metadata: 61 metadata[key] = utils.parse_rst(metadata[key], 'tag', _('tag:') + tag_name )61 metadata[key] = utils.parse_rst(metadata[key], 'tag', _('tag:') + tag_name, link_base='..') 62 62 if library in template.builtins: 63 63 tag_library = None 64 64 else: … … 87 87 for filter_name, filter_func in library.filters.items(): 88 88 title, body, metadata = utils.parse_docstring(filter_func.__doc__) 89 89 if title: 90 title = utils.parse_rst(title, 'filter', _('filter:') + filter_name )90 title = utils.parse_rst(title, 'filter', _('filter:') + filter_name, link_base='..') 91 91 if body: 92 body = utils.parse_rst(body, 'filter', _('filter:') + filter_name )92 body = utils.parse_rst(body, 'filter', _('filter:') + filter_name, link_base='..') 93 93 for key in metadata: 94 metadata[key] = utils.parse_rst(metadata[key], 'filter', _('filter:') + filter_name )94 metadata[key] = utils.parse_rst(metadata[key], 'filter', _('filter:') + filter_name, link_base='..') 95 95 if library in template.builtins: 96 96 tag_library = None 97 97 else: