可以使用annotate 方法将获取的字段值进行重命名from django.db.models import F qs = Doc.objects.annotate( cate_create_user=F('cate__create_by__username'), ) ...
確定! 回上一頁