Commit bc75e912 authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Fixed #9046: Corrected a typo in the m2m intermediate docs. Thanks to djoume for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9020 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent 24d3129e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -478,7 +478,7 @@ many-to-many relationships, you can query using the attributes of the
many-to-many-related model::

    # Find all the groups with a member whose name starts with 'Paul'
    >>> Groups.objects.filter(person__name__startswith='Paul')
    >>> Groups.objects.filter(members__name__startswith='Paul')
    [<Group: The Beatles>]

As you are using an intermediate model, you can also query on its attributes::