Forráskód Böngészése

Removed unnecessary F() from Func expressions docs

Alasdair Nicol 9 éve
szülő
commit
b792c4804b
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      docs/ref/models/expressions.txt

+ 1 - 1
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::