(no-ticket) attachments: add select_related()

Change-Id: I081ef8c4d578bb862f9ebb83402b87a19fc8387c