Ticket #8924: 8924.diff
File 8924.diff, 767 bytes (added by , 16 years ago) |
---|
-
docs/topics/db/queries.txt
336 336 337 337 >>> Entry.objects.get(headline__exact="Man bites dog") 338 338 339 Wo rld generate SQL along these lines:339 Would generate SQL along these lines: 340 340 341 341 .. code-block:: sql 342 342 … … 428 428 also those which have an empty ``author`` on the ``entry``. If you don't want 429 429 those latter objects, you could write:: 430 430 431 Blog.obje tcs.filter(entry__author__isnull=False,431 Blog.objects.filter(entry__author__isnull=False, 432 432 entry__author__name__isnull=True) 433 433 434 434 Spanning multi-valued relationships