For Loop in Object_list where BooleanField value is true

后端 未结 0 456
耶瑟儿~
耶瑟儿~ 2021-01-05 10:48

Suppose I have an Announcement model that contains is_important = models.BooleanField()

How do I select rows with is_important = True only in for loop? As I want to d

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