Django annotate and aggregate with division

前端 未结 0 2051
盖世英雄少女心
盖世英雄少女心 2021-02-12 05:00

I have the following code:

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


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