I have the following code:
result = Training.current\\ .annotate(per_training=ExpressionWrapper((Count(\'trainingregistration\') / F(\'capacity\')) *