diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-26 13:49:46 -0600 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-11-26 13:49:54 -0600 |
| commit | bb5ab908cc8ab71ddb619daa72a9aa5081af5f8b (patch) | |
| tree | cef3af1158a2ba3b8112ca4f3d81635e5e295976 /docs/ref | |
| parent | 384816fccb6dfc7fc40f8059811341ba3572d9ff (diff) | |
Fixed a typo in the documentation
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/models/querysets.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index d8f7d35c5a..834b849c8f 100644 --- a/docs/ref/models/querysets.txt +++ b/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 |
