From f2eea960e052db2d280e6dd016b0f8f23d5a8ef7 Mon Sep 17 00:00:00 2001 From: Bryan Helmig Date: Thu, 20 Mar 2014 23:30:10 -0700 Subject: [PATCH] Fixed minor syntax error in Queryset docs --- docs/ref/models/querysets.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: