Ticket #11106: 11106.diff

File 11106.diff, 555 bytes (added by Tim Graham, 15 years ago)

typo

  • docs/topics/db/models.txt

     
    507507many-to-many-related model::
    508508
    509509    # Find all the groups with a member whose name starts with 'Paul'
    510     >>> Groups.objects.filter(members__name__startswith='Paul')
     510    >>> Group.objects.filter(members__name__startswith='Paul')
    511511    [<Group: The Beatles>]
    512512
    513513As you are using an intermediate model, you can also query on its attributes::
Back to Top