mirror of
https://github.com/django/django.git
synced 2025-09-27 20:49:21 +00:00
Fixed typo in expression documentation.
This commit is contained in:
parent
8076ae68c1
commit
60b6a7ea9d
1 changed files with 1 additions and 1 deletions
|
@ -239,7 +239,7 @@ For example, to sort companies that haven't been contacted (``last_contacted``
|
||||||
is null) after companies that have been contacted::
|
is null) after companies that have been contacted::
|
||||||
|
|
||||||
from django.db.models import F
|
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:
|
.. _func-expressions:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue