[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

View file

@ -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",