这是我的代码views.pyuser_driver_list = []tega_list = []for driversprofiles in check_all_columns: fetched_profile = fetch_rafiki_profile()[0] driver_rafiki_session_existance = RafikiDriverSession.objects.filter(rafiki_number=fetch_rafiki_profile()[0], drivers_profile=driversprofiles) user_driver = User.objects.filter(username=driversprofiles.user) user_driver_list.append(UserSerializer(user_driver, many=True).data) print("A") latest_tegas = Tega.objects.filter(driver_profile=driversprofiles).latest(field_name='start_time') tega_list.append(TegaSerializer(latest_tegas, many=True).data) print("B")我正在尝试获取过滤器并为 QuerySet 中的每个匹配驱动程序获取所有最新的 Tegas check_all_columns。
添加回答
举报
0/150
提交
取消