From 69e2cd6fed40f3ecf767609b80ad31f288446e48 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Mon, 6 Apr 2020 07:41:43 +0200 Subject: [PATCH] Fixed Sphinx warnings on duplicate object descriptions. --- docs/ref/contrib/auth.txt | 7 +++++++ docs/ref/contrib/gis/db-api.txt | 2 +- docs/ref/contrib/gis/geoquerysets.txt | 1 + docs/ref/contrib/staticfiles.txt | 1 + docs/ref/models/database-functions.txt | 3 +++ docs/topics/auth/customizing.txt | 1 + 6 files changed, 14 insertions(+), 1 deletion(-) diff --git a/docs/ref/contrib/auth.txt b/docs/ref/contrib/auth.txt index 8f591f4c5a..61b439b2cb 100644 --- a/docs/ref/contrib/auth.txt +++ b/docs/ref/contrib/auth.txt @@ -12,10 +12,13 @@ topic guide `. ``User`` model ============== +.. class:: models.User + Fields ------ .. class:: models.User + :noindex: :class:`~django.contrib.auth.models.User` objects have the following fields: @@ -119,6 +122,7 @@ Attributes ---------- .. class:: models.User + :noindex: .. attribute:: is_authenticated @@ -144,6 +148,7 @@ Methods ------- .. class:: models.User + :noindex: .. method:: get_username() @@ -363,6 +368,7 @@ Fields fields: .. class:: models.Permission + :noindex: .. attribute:: name @@ -394,6 +400,7 @@ Fields :class:`~django.contrib.auth.models.Group` objects have the following fields: .. class:: models.Group + :noindex: .. attribute:: name diff --git a/docs/ref/contrib/gis/db-api.txt b/docs/ref/contrib/gis/db-api.txt index cff7108a6a..03c9c5a724 100644 --- a/docs/ref/contrib/gis/db-api.txt +++ b/docs/ref/contrib/gis/db-api.txt @@ -328,7 +328,7 @@ Lookup Type PostGIS Oracle MariaDB MySQL [#]_ Sp :lookup:`distance_lte` X X X X X N :lookup:`dwithin` X X X B :lookup:`equals` X X X X X C -:lookup:`exact` X X X X X B +:lookup:`exact ` X X X X X B :lookup:`intersects` X X X X X B :lookup:`isvalid` X X X (≥ 5.7.5) X (LWGEOM) :lookup:`overlaps` X X X X X B diff --git a/docs/ref/contrib/gis/geoquerysets.txt b/docs/ref/contrib/gis/geoquerysets.txt index 98bc8c4613..beda7b538e 100644 --- a/docs/ref/contrib/gis/geoquerysets.txt +++ b/docs/ref/contrib/gis/geoquerysets.txt @@ -314,6 +314,7 @@ SpatiaLite ``Equals(poly, geom)`` boxes. .. fieldlookup:: exact + :noindex: .. fieldlookup:: same_as ``exact``, ``same_as`` diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt index eefd1e3039..48bdfc984e 100644 --- a/docs/ref/contrib/staticfiles.txt +++ b/docs/ref/contrib/staticfiles.txt @@ -203,6 +203,7 @@ the directories which were searched: ------------- .. django-admin:: runserver [addrport] + :noindex: Overrides the core :djadmin:`runserver` command if the ``staticfiles`` app is :setting:`installed` and adds automatic serving of static diff --git a/docs/ref/models/database-functions.txt b/docs/ref/models/database-functions.txt index 940f4d0922..d0043857cd 100644 --- a/docs/ref/models/database-functions.txt +++ b/docs/ref/models/database-functions.txt @@ -677,14 +677,17 @@ Usage example:: ~~~~~~~~~~~~~~~~~~~~~~~~ .. class:: TruncHour(expression, output_field=None, tzinfo=None, is_dst=None, **extra) + :noindex: .. attribute:: kind = 'hour' .. class:: TruncMinute(expression, output_field=None, tzinfo=None, is_dst=None, **extra) + :noindex: .. attribute:: kind = 'minute' .. class:: TruncSecond(expression, output_field=None, tzinfo=None, is_dst=None, **extra) + :noindex: .. attribute:: kind = 'second' diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt index 453566d4cf..2bf8d611c2 100644 --- a/docs/topics/auth/customizing.txt +++ b/docs/topics/auth/customizing.txt @@ -855,6 +855,7 @@ must define some additional attributes and methods. These methods allow the admin to control access of the user to admin content: .. class:: models.CustomUser + :noindex: .. attribute:: is_staff