From 57615516bc97d4c94d2828c57528f06b662e43a9 Mon Sep 17 00:00:00 2001 From: Alasdair Nicol Date: Fri, 31 Jul 2015 01:40:35 +0100 Subject: [PATCH] [1.8.x] Removed unnecessary F() from Func expressions docs Backport of b792c4804b611369c3e146f1fd967d9c5bdea17f from master --- docs/ref/models/expressions.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt index 5280d035b1..f83523145e 100644 --- a/docs/ref/models/expressions.txt +++ b/docs/ref/models/expressions.txt @@ -217,7 +217,7 @@ or they can be used to build a library of database functions:: class Lower(Func): function = 'LOWER' - queryset.annotate(field_lower=Lower(F('field'))) + queryset.annotate(field_lower=Lower('field')) But both cases will result in a queryset where each model is annotated with an extra attribute ``field_lower`` produced, roughly, from the following SQL::