考慮下面的代碼:django查詢select_related是否需要後續查詢?
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()
這樣第二個查詢?