给定以下代码:
progresses = Progress.objects.filter(customer=request.user).select_related()
if id is not None
progress = progresses.get(pk=id)
else:
progress = progresses[0]
我是否需要将 select_related() 添加到第二个查询中,例如progress = progresses.filter(pk=id).select_related()
?