Browse files

Fixed minor syntax error in Queryset docs

  • Loading branch information...
1 parent 222262c commit f2eea960e052db2d280e6dd016b0f8f23d5a8ef7 @bryanhelmig bryanhelmig committed with bmispelon Mar 20, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/ref/models/querysets.txt
View
2 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:

0 comments on commit f2eea96

Please sign in to comment.