Skip to content

Commit

Permalink
Fixed #9046: Corrected a typo in the m2m intermediate docs. Thanks to…
Browse files Browse the repository at this point in the history
… djoume for the report.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9020 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed Sep 14, 2008
1 parent 24d3129 commit bc75e91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/topics/db/models.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand Down

0 comments on commit bc75e91

Please sign in to comment.