[Fixed]-How to select boolean fields in django model

1👍

You can just use a queryset filter

def qqq(self):
    return self.stock_all.filter(vsej_seti=True)

Note: There may be more efficient queries avaiable depending on your use case but this is easily modified as per the docs

👤Sayse

Leave a comment