diff options
| author | Alasdair Nicol <alasdair@thenicols.net> | 2015-07-31 01:40:35 +0100 |
|---|---|---|
| committer | Alasdair Nicol <alasdair@thenicols.net> | 2015-07-31 01:40:35 +0100 |
| commit | b792c4804b611369c3e146f1fd967d9c5bdea17f (patch) | |
| tree | 87304a434ae9a2e852b6b69d14272a1127c2327f /docs | |
| parent | 5b6ca150730cddb09ff8622d49b273d57b9c6703 (diff) | |
Removed unnecessary F() from Func expressions docs
Diffstat (limited to 'docs')
| -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 7bc8a0665d..29ee59a29d 100644 --- a/docs/ref/models/expressions.txt +++ b/docs/ref/models/expressions.txt @@ -213,7 +213,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:: |
