mirror of
https://github.com/django/django.git
synced 2024-12-28 12:06:22 +00:00
[1.8.x] Removed unnecessary F() from Func expressions docs
Backport of b792c4804b
from master
This commit is contained in:
parent
22e9c87bb8
commit
57615516bc
@ -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::
|
||||||
|
Loading…
Reference in New Issue
Block a user