Is there a better way to set a model's field?