diff options
| author | Alasdair Nicol <alasdair@thenicols.net> | 2015-07-31 01:40:35 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-07-30 21:15:30 -0400 |
| commit | 57615516bc97d4c94d2828c57528f06b662e43a9 (patch) | |
| tree | 3c9f49d73580ba1750ef40df91c105284393cb56 /docs/ref | |
| parent | 22e9c87bb8f9094a42600fbbcad1b4aa608eb887 (diff) | |
[1.8.x] Removed unnecessary F() from Func expressions docs
Backport of b792c4804b611369c3e146f1fd967d9c5bdea17f from master
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/models/expressions.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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:: |
