Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed minor syntax error in Queryset docs

  • Loading branch information...
commit f2eea960e052db2d280e6dd016b0f8f23d5a8ef7 1 parent 222262c
@bryanhelmig bryanhelmig authored bmispelon committed
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:
Please sign in to comment.
Something went wrong with that request. Please try again.