summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/topics/db/models.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/db/models.txt b/docs/topics/db/models.txt
index 25d76c9c42..55d4ace0a9 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')
[<Group: The Beatles>]
As you are using an intermediate model, you can also query on its attributes::