Only format attributes locally for selecting keys for inverse relationships

In pull request #430, I formatted the models attributes in order to correctly obtain the morphValue and foreignKey. I should only have done this locally, not formatted the model's attributes, as this is an undesired side effect.