summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2019-06-03 12:39:48 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2019-06-03 14:08:51 +0200
commit5ab75adb900ca3fce50e65e60b11f2eb3ce9fd25 (patch)
tree4168fa078069da6075bea5970c3bd70dced24ce8 /docs/ref
parentb27c9c953bce3aed205ebc378350ef027ebdd25b (diff)
Removed redundant object descriptions to prevent warnings with Sphinx 2.1.0.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/gis/db-api.txt8
-rw-r--r--docs/ref/middleware.txt7
2 files changed, 4 insertions, 11 deletions
diff --git a/docs/ref/contrib/gis/db-api.txt b/docs/ref/contrib/gis/db-api.txt
index a8a257aa88..d158f274b8 100644
--- a/docs/ref/contrib/gis/db-api.txt
+++ b/docs/ref/contrib/gis/db-api.txt
@@ -17,9 +17,6 @@ GeoDjango currently provides the following spatial database backends:
* ``django.contrib.gis.db.backends.oracle``
* ``django.contrib.gis.db.backends.spatialite``
-.. module:: django.contrib.gis.db.models
- :synopsis: GeoDjango's database API.
-
.. _mysql-spatial-limitations:
MySQL Spatial Limitations
@@ -354,12 +351,11 @@ Lookup Type PostGIS Oracle MySQL [#]_ SpatiaLite
Database functions
------------------
-.. module:: django.contrib.gis.db.models.functions
- :synopsis: GeoDjango's database functions.
-
The following table provides a summary of what geography-specific database
functions are available on each spatial backend.
+.. currentmodule:: django.contrib.gis.db.models.functions
+
==================================== ======= ============== =========== ==========
Function PostGIS Oracle MySQL SpatiaLite
==================================== ======= ============== =========== ==========
diff --git a/docs/ref/middleware.txt b/docs/ref/middleware.txt
index 627de6edc9..62df23c7dc 100644
--- a/docs/ref/middleware.txt
+++ b/docs/ref/middleware.txt
@@ -380,9 +380,7 @@ details.
CSRF protection middleware
--------------------------
-.. module:: django.middleware.csrf
- :synopsis: Middleware adding protection against Cross Site Request
- Forgeries.
+.. currentmodule:: django.middleware.csrf
.. class:: CsrfViewMiddleware
@@ -393,8 +391,7 @@ fields to POST forms and checking requests for the correct value. See the
``X-Frame-Options`` middleware
------------------------------
-.. module:: django.middleware.clickjacking
- :synopsis: Clickjacking protection
+.. currentmodule:: django.middleware.clickjacking
.. class:: XFrameOptionsMiddleware