[docs] Replace calls to add_description_unit
As of Sphinx 2.4, the deprecated add_description_unit function has been removed. As a result, the docs no longer build when using Sphinx 2.4. Replacing add_description_unit with add_object_type corrects this.
This commit is contained in:
parent
d106181b94
commit
6ee703847f
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ def setup(app):
|
||||||
rolename="lookup",
|
rolename="lookup",
|
||||||
indextemplate="pair: %s; field lookup type",
|
indextemplate="pair: %s; field lookup type",
|
||||||
)
|
)
|
||||||
app.add_description_unit(
|
app.add_object_type(
|
||||||
directivename="django-admin",
|
directivename="django-admin",
|
||||||
rolename="djadmin",
|
rolename="djadmin",
|
||||||
indextemplate="pair: %s; django-admin command",
|
indextemplate="pair: %s; django-admin command",
|
||||||
|
|
Loading…
Reference in a new issue