added readonly model mixin.