1
0
mirror of https://github.com/django/django.git synced 2025-07-18 16:49:13 +00:00

[1.0.X] Fixed #11106 -- Corrected typo in models doc. Thanks mnieber.

r10797 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@10798 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Karen Tracey 2009-05-17 16:22:44 +00:00
parent ebd74921bb
commit e6a6ce4f07

View File

@ -507,7 +507,7 @@ many-to-many relationships, you can query using the attributes of the
many-to-many-related model:: many-to-many-related model::
# Find all the groups with a member whose name starts with 'Paul' # Find all the groups with a member whose name starts with 'Paul'
>>> Groups.objects.filter(members__name__startswith='Paul') >>> Group.objects.filter(members__name__startswith='Paul')
[<Group: The Beatles>] [<Group: The Beatles>]
As you are using an intermediate model, you can also query on its attributes:: As you are using an intermediate model, you can also query on its attributes::