From 6ee703847f89d7431d7d5f94d5c4d9f5f6a8b8c1 Mon Sep 17 00:00:00 2001 From: William Blough Date: Thu, 2 Jul 2020 12:11:35 -0400 Subject: [PATCH] [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. --- docs/_ext/djangodocs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py index 0f29341..681ce16 100644 --- a/docs/_ext/djangodocs.py +++ b/docs/_ext/djangodocs.py @@ -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",