handle relations in show mode

fix #306

porting the configuration for show templates from the orm admin.
getMappingType is always null, we never set that. but i guess now that we handle relations, we don't want to silently skip those fields anymore.