From 3b4947e7ba8eed175dc7497c28a9d19da9777de5 Mon Sep 17 00:00:00 2001
From: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Date: Mon, 20 Mar 2017 23:30:32 +0100
Subject: [PATCH] [1.11.x] Removed extra characters in docs header underlines.

Backport of a3af8c99d94638e0d1fc8a847b74aa6953441d55 from master
---
 docs/faq/troubleshooting.txt                | 2 +-
 docs/ref/checks.txt                         | 2 +-
 docs/ref/contrib/gis/tutorial.txt           | 2 +-
 docs/ref/contrib/sitemaps.txt               | 2 +-
 docs/ref/databases.txt                      | 2 +-
 docs/ref/models/fields.txt                  | 6 +++---
 docs/ref/models/indexes.txt                 | 2 +-
 docs/ref/models/options.txt                 | 2 +-
 docs/ref/settings.txt                       | 4 ++--
 docs/topics/conditional-view-processing.txt | 2 +-
 docs/topics/db/models.txt                   | 2 +-
 docs/topics/db/multi-db.txt                 | 2 +-
 12 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/docs/faq/troubleshooting.txt b/docs/faq/troubleshooting.txt
index 1b2efd552f..4deaf0feb0 100644
--- a/docs/faq/troubleshooting.txt
+++ b/docs/faq/troubleshooting.txt
@@ -11,7 +11,7 @@ Problems running ``django-admin``
 =================================
 
 "command not found: `django-admin`"
-------------------------------------
+-----------------------------------
 
 :doc:`django-admin </ref/django-admin>` should be on your system path if you
 installed Django via ``python setup.py``. If it's not on your path, you can
diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt
index d5d0bd4e0f..ad057df8a9 100644
--- a/docs/ref/checks.txt
+++ b/docs/ref/checks.txt
@@ -15,7 +15,7 @@ API reference
 =============
 
 ``CheckMessage``
------------------
+----------------
 
 .. class:: CheckMessage(level, msg, hint=None, obj=None, id=None)
 
diff --git a/docs/ref/contrib/gis/tutorial.txt b/docs/ref/contrib/gis/tutorial.txt
index ace974f13a..42a131437a 100644
--- a/docs/ref/contrib/gis/tutorial.txt
+++ b/docs/ref/contrib/gis/tutorial.txt
@@ -53,7 +53,7 @@ would for any other project. We provide some tips for selected databases:
 * :doc:`install/spatialite`
 
 Create a New Project
-------------------------
+--------------------
 
 Use the standard ``django-admin`` script to create a project called
 ``geodjango``:
diff --git a/docs/ref/contrib/sitemaps.txt b/docs/ref/contrib/sitemaps.txt
index 16b1855c99..cbebfb7fbf 100644
--- a/docs/ref/contrib/sitemaps.txt
+++ b/docs/ref/contrib/sitemaps.txt
@@ -420,7 +420,7 @@ rendering. For more details, see the :doc:`TemplateResponse documentation
 </ref/template-response>`.
 
 Context variables
-------------------
+-----------------
 
 When customizing the templates for the
 :func:`~django.contrib.sitemaps.views.index` and
diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt
index 6e3694695e..8032c36045 100644
--- a/docs/ref/databases.txt
+++ b/docs/ref/databases.txt
@@ -628,7 +628,7 @@ specific to SQLite that you should be aware of.
 .. _sqlite-string-matching:
 
 Substring matching and case sensitivity
------------------------------------------
+---------------------------------------
 
 For all SQLite versions, there is some slightly counter-intuitive behavior when
 attempting to match some types of strings.  These are triggered when using the
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index 09f1618275..b343aca6d9 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -356,7 +356,7 @@ respect to the month.
 Like :attr:`~Field.unique_for_date` and :attr:`~Field.unique_for_month`.
 
 ``verbose_name``
--------------------
+----------------
 
 .. attribute:: Field.verbose_name
 
@@ -365,7 +365,7 @@ will automatically create it using the field's attribute name, converting
 underscores to spaces. See :ref:`Verbose field names <verbose-field-names>`.
 
 ``validators``
--------------------
+--------------
 
 .. attribute:: Field.validators
 
@@ -417,7 +417,7 @@ guaranteed to fit numbers from ``-9223372036854775808`` to
 :class:`~django.forms.TextInput`.
 
 ``BinaryField``
--------------------
+---------------
 
 .. class:: BinaryField(**options)
 
diff --git a/docs/ref/models/indexes.txt b/docs/ref/models/indexes.txt
index 999513c9d6..1b2af670d7 100644
--- a/docs/ref/models/indexes.txt
+++ b/docs/ref/models/indexes.txt
@@ -28,7 +28,7 @@ options`_.
     Creates an index (B-Tree) in the database.
 
 ``fields``
------------
+----------
 
 .. attribute:: Index.fields
 
diff --git a/docs/ref/models/options.txt b/docs/ref/models/options.txt
index 5d385adf24..0e885dfae6 100644
--- a/docs/ref/models/options.txt
+++ b/docs/ref/models/options.txt
@@ -330,7 +330,7 @@ Django quotes column and table names behind the scenes.
     human_readable_permission_name)``.
 
 ``default_permissions``
-------------------------------
+-----------------------
 
 .. attribute:: Options.default_permissions
 
diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt
index 6cab03f3c2..f585f8cf04 100644
--- a/docs/ref/settings.txt
+++ b/docs/ref/settings.txt
@@ -1492,7 +1492,7 @@ Monday and so on.
 .. setting:: FIXTURE_DIRS
 
 ``FIXTURE_DIRS``
------------------
+----------------
 
 Default: ``[]`` (Empty list)
 
@@ -1983,7 +1983,7 @@ See :tfilter:`allowed date format strings <date>`. See also
 .. setting:: NUMBER_GROUPING
 
 ``NUMBER_GROUPING``
---------------------
+-------------------
 
 Default: ``0``
 
diff --git a/docs/topics/conditional-view-processing.txt b/docs/topics/conditional-view-processing.txt
index 7fabacf6c5..02bf4635a8 100644
--- a/docs/topics/conditional-view-processing.txt
+++ b/docs/topics/conditional-view-processing.txt
@@ -147,7 +147,7 @@ using one of these decorators::
     front_page = last_modified(latest_entry)(front_page)
 
 Use ``condition`` when testing both conditions
-------------------------------------------------
+----------------------------------------------
 
 It might look nicer to some people to try and chain the ``etag`` and
 ``last_modified`` decorators if you want to test both preconditions. However,
diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt
index 07caa00b02..9833ff5afb 100644
--- a/docs/topics/db/models.txt
+++ b/docs/topics/db/models.txt
@@ -1362,7 +1362,7 @@ Or use a common ancestor to hold the :class:`~django.db.models.AutoField`::
         pass
 
 Field name "hiding" is not permitted
--------------------------------------
+------------------------------------
 
 In normal Python class inheritance, it is permissible for a child class to
 override any attribute from the parent class. In Django, this isn't usually
diff --git a/docs/topics/db/multi-db.txt b/docs/topics/db/multi-db.txt
index 83ac9b7c5e..5649ce31bc 100644
--- a/docs/topics/db/multi-db.txt
+++ b/docs/topics/db/multi-db.txt
@@ -554,7 +554,7 @@ solution is to use ``db_manager()``, like this::
 ``db_manager()`` returns a copy of the manager bound to the database you specify.
 
 Using ``get_queryset()`` with multiple databases
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 If you're overriding ``get_queryset()`` on your manager, be sure to
 either call the method on the parent (using ``super()``) or do the