Change attname -> name for related fields as pk