Add attributes to model template