theodi/odi_content_models — pull request #34 by pezholio (2013-10-21 08:57:53+00:00)
Title: Assign user profile to existing Person if one exists

When creating new users in the Mongo database, we were creating new PersonEditions, which is not ideal given we've already got most people in the content DB now. This PR fixes this, and attempts to find an existing PersonEdition with that name before creating a new one. This is not ideal, but should work as long as we make sure the User has the same name as their corresponding PersonEdition.