Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a typo in the documentation

  • Loading branch information...
commit bb5ab908cc8ab71ddb619daa72a9aa5081af5f8b 1 parent 384816f
@alex alex authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/ref/models/querysets.txt
2  docs/ref/models/querysets.txt
@@ -955,7 +955,7 @@ This allows prefetching the same relation multiple times with a different
>>> vegetarian_pizzas = Pizza.objects.filter(vegetarian=True)
>>> Restaurant.objects.prefetch_related(
- ... Prefetch('pizzas', to_attr('menu')),
+ ... Prefetch('pizzas', to_attr='menu'),
... Prefetch('pizzas', queryset=vegetarian_pizzas, to_attr='vegetarian_menu'))
Lookups created with custom ``to_attr`` can still be traversed as usual by other
Please sign in to comment.
Something went wrong with that request. Please try again.