Index: modeltests/many_to_one/models.py
===================================================================
--- modeltests/many_to_one/models.py	(revision 3077)
+++ modeltests/many_to_one/models.py	(working copy)
@@ -217,6 +217,21 @@
 >>> Reporter.objects.filter(article__reporter__first_name__startswith='John').distinct()
 [<Reporter: John Smith>]
 
+# OR lookups across foreign keys
+#
+# At revision 3077, the last test case fails to find Luke.  An inner
+# join is created, and since Luke has no articles, he doesn't match
+# the criteria.  For someone not familiar with how the ORM works, it's
+# quite unexpected.
+>>> from django.db.models import Q
+>>> Reporter.objects.filter(Q(first_name='John')|Q(article__headline__startswith='Paul')).distinct()
+[<Reporter: John Smith>, <Reporter: Paul Jones>]
+>>> r3 = Reporter(first_name='Luke', last_name='Field', email='luke@example.com')
+>>> r3.save()
+>>> Reporter.objects.filter(Q(first_name='Luke')|Q(article__headline__startswith='Paul')).distinct()
+[<Reporter: Luke Field>, <Reporter: Paul Jones>]
+>>> r3.delete()
+
 # If you delete a reporter, his articles will be deleted.
 >>> Article.objects.all()
 [<Article: John's second story>, <Article: Paul's story>, <Article: This is a test>, <Article: This is a test>, <Article: This is a test>]
