Commit bb5ab908 authored by Alex Gaynor's avatar Alex Gaynor
Browse files

Fixed a typo in the documentation

parent 384816fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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