fix migration, only works like that

previous code gave:

ValueError: Cannot assign "<User: joedoe>": "UserProfile.user" must be a "User" instance.