django orm 新增列
from django.db.models import Count, F, Value from django.db import models menu_button_list = list(MenuButton.objects.filter(menu=child).annotate( isButton=Value(True, output_field=models.BooleanField())).values("id", "name", "value", "isButton"))