Adding select_related() to query