summaryrefslogtreecommitdiff
path: root/docs/ref/models
diff options
context:
space:
mode:
authorBryan Helmig <bryan@zapier.com>2014-03-20 23:30:10 -0700
committerBaptiste Mispelon <bmispelon@gmail.com>2014-03-21 11:02:15 +0100
commitf2eea960e052db2d280e6dd016b0f8f23d5a8ef7 (patch)
tree73a729b251f18e0e654946f060ae9363e149239b /docs/ref/models
parent222262ca2354abadf259f4186a0b43f583ed1bd1 (diff)
Fixed minor syntax error in Queryset docs
Diffstat (limited to 'docs/ref/models')
-rw-r--r--docs/ref/models/querysets.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index 22ccda4b8e..f10f66425a 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -981,7 +981,7 @@ less ambiguous than storing a filtered result in the related manager's cache:
>>>
>>> # Recommended:
>>> restaurants = Restaurant.objects.prefetch_related(
- ... Prefetch('pizzas', to_attr='vegetarian_pizzas' queryset=queryset))
+ ... Prefetch('pizzas', queryset=queryset, to_attr='vegetarian_pizzas'))
>>> vegetarian_pizzas = restaurants[0].vegetarian_pizzas
>>>
>>> # Not recommended: