Commit 57615516 authored by Alasdair Nicol's avatar Alasdair Nicol Committed by Tim Graham
Browse files

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

Backport of b792c480 from master
parent 22e9c87b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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::