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

后端 未结 0 1179
清歌不尽
清歌不尽 2020-11-27 14:55

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

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