diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt index a6fa7018e0..8b55e4f513 100644 --- a/docs/topics/db/models.txt +++ b/docs/topics/db/models.txt @@ -507,7 +507,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(members__name__startswith='Paul') + >>> Group.objects.filter(members__name__startswith='Paul') [] As you are using an intermediate model, you can also query on its attributes::