Add __iter__() to model class.