This should be moved into the `if` statement below, since it's not used unless `model` isn't a model instance.