from django.db.models import F MyModel.objects.all().order_by(F('price').desc(nulls_last=True))此功能已添加到Django 1.11中。
https://docs.djangoproject.com/en/dev/releases/1.11/
Added the nulls_first and nulls_last parameters to expression.asc() and desc() to control the ordering of null values.



