소스 검색

Fixed typo in expression documentation.

Vyacheslav Ver 5 년 전
부모
커밋
60b6a7ea9d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      docs/ref/models/expressions.txt

+ 1 - 1
docs/ref/models/expressions.txt

@@ -239,7 +239,7 @@ For example, to sort companies that haven't been contacted (``last_contacted``
 is null) after companies that have been contacted::
 
     from django.db.models import F
-    Company.object.order_by(F('last_contacted').desc(nulls_last=True))
+    Company.objects.order_by(F('last_contacted').desc(nulls_last=True))
 
 .. _func-expressions: