[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:
William Blough 2020-07-02 12:11:35 -04:00 committed by Valentin Samir
parent d106181b94
commit 6ee703847f
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ def setup(app):
rolename="lookup",
indextemplate="pair: %s; field lookup type",
)
app.add_description_unit(
app.add_object_type(
directivename="django-admin",
rolename="djadmin",
indextemplate="pair: %s; django-admin command",