Django

Code

Ticket #8924: 8924.diff

File 8924.diff, 0.7 kB (added by arien, 4 months ago)

Patch to fix the reported typo and change objetcs to objects.

  • docs/topics/db/queries.txt

    old new  
    336336         
    337337            >>> Entry.objects.get(headline__exact="Man bites dog") 
    338338 
    339         World generate SQL along these lines: 
     339        Would generate SQL along these lines: 
    340340         
    341341        .. code-block:: sql 
    342342 
     
    428428also those which have an empty ``author`` on the ``entry``. If you don't want 
    429429those latter objects, you could write:: 
    430430 
    431     Blog.objetcs.filter(entry__author__isnull=False, 
     431    Blog.objects.filter(entry__author__isnull=False, 
    432432            entry__author__name__isnull=True) 
    433433 
    434434Spanning multi-valued relationships