From 2fb602f58181fa07e416474a35fef1945a6f8df3 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 28 Mar 2019 20:32:17 -0400 Subject: [2.2.x] Used extlinks for Django's source code. Backport of a68c029e224cebe540da7447dbbd27993b4aa793 from master. --- docs/topics/auth/customizing.txt | 6 ++---- docs/topics/db/queries.txt | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'docs/topics') diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt index cc0c791f59..87988873a4 100644 --- a/docs/topics/auth/customizing.txt +++ b/docs/topics/auth/customizing.txt @@ -204,14 +204,12 @@ Notice that in addition to the same arguments given to the associated all take the user object, which may be an anonymous user, as an argument. A full authorization implementation can be found in the ``ModelBackend`` class -in `django/contrib/auth/backends.py`_, which is the default backend and queries -the ``auth_permission`` table most of the time. If you wish to provide +in :source:`django/contrib/auth/backends.py`, which is the default backend and +queries the ``auth_permission`` table most of the time. If you wish to provide custom behavior for only part of the backend API, you can take advantage of Python inheritance and subclass ``ModelBackend`` instead of implementing the complete API in a custom backend. -.. _django/contrib/auth/backends.py: https://github.com/django/django/blob/master/django/contrib/auth/backends.py - .. _anonymous_auth: Authorization for anonymous users diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt index bb8b755297..bcdaaea359 100644 --- a/docs/topics/db/queries.txt +++ b/docs/topics/db/queries.txt @@ -867,10 +867,8 @@ precede the definition of any keyword arguments. For example:: .. seealso:: - The `OR lookups examples`_ in the Django unit tests show some possible uses - of ``Q``. - - .. _OR lookups examples: https://github.com/django/django/blob/master/tests/or_lookups/tests.py + The :source:`OR lookups examples ` in Django's + unit tests show some possible uses of ``Q``. Comparing objects ================= -- cgit v1.3