User.objects.all().values_list('username', 'email').union(UserProfile.objects.all().values_list('username', 'email'))
django合并查询数据模型
最新推荐文章于 2024-05-13 16:57:09 发布
User.objects.all().values_list('username', 'email').union(UserProfile.objects.all().values_list('username', 'email'))