Ticket #11106: 11106.diff
File 11106.diff, 555 bytes (added by , 16 years ago) |
---|
-
docs/topics/db/models.txt
507 507 many-to-many-related model:: 508 508 509 509 # Find all the groups with a member whose name starts with 'Paul' 510 >>> Group s.objects.filter(members__name__startswith='Paul')510 >>> Group.objects.filter(members__name__startswith='Paul') 511 511 [<Group: The Beatles>] 512 512 513 513 As you are using an intermediate model, you can also query on its attributes::