[1.8.x] Removed unnecessary F() from Func expressions docs

Backport of b792c4804b from master
This commit is contained in:
Alasdair Nicol 2015-07-31 01:40:35 +01:00 committed by Tim Graham
parent 22e9c87bb8
commit 57615516bc
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ or they can be used to build a library of database functions::
class Lower(Func): class Lower(Func):
function = 'LOWER' 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 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:: extra attribute ``field_lower`` produced, roughly, from the following SQL::