Refactor DetailViewGenerator

Add Attributes to custom Model