Django annotate python generated list as attribute on queryset

前端 未结 0 556
孤独总比滥情好
孤独总比滥情好 2021-02-01 23:31

Is it possible to annotate each object in a queryset with a python list?

def annotate_training_dates(self):
    Training = apps.get_model(\'training.Training\')
          


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