Django. How do I add a field to a query result?

前端 未结 0 1022
抹茶落季
抹茶落季 2020-12-02 16:56

I have a Room model and I want to add the is_member boolean field to a queryset with rooms. How can do this? I was thinking of using .annotate (),

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