https://docs.djangoproject.com/en/2.1/ref/models/database-functions/ Contents Database Functions Comparison and conversion functions CastCoalesceGreatestLeastDate functions Extract DateField extractsDateTimeField extractsNowTrunc DateField truncationDateTimeField truncationTimeField truncationText functions ChrConcatLeftLengthLowerLPadLTrimOrdRepeatReplaceRightRPadRTrimStrIndexSubstrTrimUpperWindow functions CumeDistDenseRankFirstValueLagLastValueLeadNthValueNtilePercentRankRankRowNumber