diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt
index f3a8709a51..91cd4fa871 100644
--- a/docs/topics/db/queries.txt
+++ b/docs/topics/db/queries.txt
@@ -824,7 +824,7 @@ precede the definition of any keyword arguments. For example::
     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/modeltests/or_lookups/tests.py
+    .. _OR lookups examples: https://github.com/django/django/blob/master/tests/or_lookups/tests.py
 
 Comparing objects
 =================