how make a conditions in django annotate?

后端 未结 0 604
情深已故
情深已故 2020-12-29 03:56

i\'m, trying to do something like this :

c = if x > y return x else return y

inner annotate function

class factura (models.MODEL):
    price          


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