Replaced docutils link by PyPI reference.

This commit is contained in:
Claude Paroz 2023-04-24 08:24:46 +02:00 committed by Mariusz Felisiak
parent 4dfc6ff8a8
commit 453cfa2815
3 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@
<div id="content-main">
<h3>{% blocktranslate with "https://docutils.sourceforge.io/" as link %}The admin documentation system requires Pythons <a href="{{ link }}">docutils</a> library.{% endblocktranslate %}</h3>
<p>{% blocktranslate with "https://docutils.sourceforge.io/" as link %}Please ask your administrators to install <a href="{{ link }}">docutils</a>.{% endblocktranslate %}</p>
<p>{% blocktranslate with "https://pypi.org/project/docutils/" as link %}Please ask your administrators to install <a href="{{ link }}">docutils</a>.{% endblocktranslate %}</p>
</div>
{% endblock %}

View File

@ -23,7 +23,7 @@ the following:
your ``urlpatterns``. Make sure it's included *before* the
``'admin/'`` entry, so that requests to ``/admin/doc/`` don't get
handled by the latter entry.
* Install the docutils Python module (https://docutils.sourceforge.io/).
* Install the :pypi:`docutils` package.
* **Optional:** Using the admindocs bookmarklets requires
``django.contrib.admindocs.middleware.XViewMiddleware`` to be installed.

View File

@ -148,7 +148,7 @@ class AdminDocViewTests(TestDataMixin, AdminDocsTestCase):
'<a href="https://docutils.sourceforge.io/">docutils</a> '
"library.</h3>"
"<p>Please ask your administrators to install "
'<a href="https://docutils.sourceforge.io/">docutils</a>.</p>',
'<a href="https://pypi.org/project/docutils/">docutils</a>.</p>',
html=True,
)
self.assertContains(