Django annotate and aggregate with division

前端 未结 0 899
情歌与酒
情歌与酒 2021-02-12 05:05

I have the following code:

    result = Training.current\\
        .annotate(per_training=ExpressionWrapper((Count(\'trainingregistration\') / F(\'capacity\')) *          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题