Skip to content

Commit e6e1b27

Browse files
committed
add django-admin crossreference
1 parent e9d4308 commit e6e1b27

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Improvements for the output of Sphinx's autodoc for Django classes:
4343
* Add information about autogenerated methods
4444
* Fix intersphinx mappings to Django modules
4545
* Custom text roles to cross-reference the documentations of Django (``:setting:``,
46-
``:templatetag:``, ``:templatefilter:``, ``:fieldlookup:``) and Sphinx (``:event:``,
46+
``:templatetag:``, ``:templatefilter:``, ``:fieldlookup:``, ``:djadmin:``) and Sphinx (``:event:``,
4747
``:confval:``)
4848

4949

sphinxcontrib_django/roles.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@ def setup(app: sphinx.application.Sphinx) -> dict:
5454
app.connect("config-inited", add_default_intersphinx_mappings)
5555

5656
# Allow intersphinx mappings to custom Django roles
57-
django_crossref_types = ["setting", "templatetag", "templatefilter", "fieldlookup"]
57+
django_crossref_types = [
58+
"setting",
59+
"templatetag",
60+
"templatefilter",
61+
"fieldlookup",
62+
"django-admin",
63+
]
5864
# Allow intersphinx mappings to custom Sphinx roles
5965
sphinx_crossref_types = ["event", "confval"]
6066

0 commit comments

Comments
 (0)