diff --git a/django/contrib/admindocs/templates/admin_doc/index.html b/django/contrib/admindocs/templates/admin_doc/index.html index 1be7873632..1b95a210b3 100644 --- a/django/contrib/admindocs/templates/admin_doc/index.html +++ b/django/contrib/admindocs/templates/admin_doc/index.html @@ -14,19 +14,19 @@

{% translate 'Documentation' %}

-

{% translate 'Tags' %}

+

{% translate 'Tags' %}

{% translate 'List of all the template tags and their functions.' %}

-

{% translate 'Filters' %}

+

{% translate 'Filters' %}

{% translate 'Filters are actions which can be applied to variables in a template to alter the output.' %}

-

{% translate 'Models' %}

+

{% translate 'Models' %}

{% translate 'Models are descriptions of all the objects in the system and their associated fields. Each model has a list of fields which can be accessed as template variables' %}.

-

{% translate 'Views' %}

+

{% translate 'Views' %}

{% translate 'Each page on the public site is generated by a view. The view defines which template is used to generate the page and which objects are available to that template.' %}

-

{% translate 'Bookmarklets' %}

+

{% translate 'Bookmarklets' %}

{% translate 'Tools for your browser to quickly access admin functionality.' %}

diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index fe1086445e..053270db40 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -7583,6 +7583,17 @@ class AdminDocsTest(TestCase): response, '
  • add
  • ', html=True ) + def test_index_headers(self): + response = self.client.get(reverse("django-admindocs-docroot")) + self.assertContains(response, "

    Documentation

    ") + self.assertContains(response, '

    Tags

    ') + self.assertContains(response, '

    Filters

    ') + self.assertContains(response, '

    Models

    ') + self.assertContains(response, '

    Views

    ') + self.assertContains( + response, '

    Bookmarklets

    ' + ) + @override_settings( ROOT_URLCONF="admin_views.urls",