Deprecate `.model` attribute on views

Closes #1782