update attachments filter by related_object_type