1
0
mirror of https://github.com/django/django.git synced 2025-03-03 05:24:24 +00:00

Removed unnecessary F() from Func expressions docs

This commit is contained in:
Alasdair Nicol 2015-07-31 01:40:35 +01:00
parent 5b6ca15073
commit b792c4804b

View File

@ -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::