It was just a idea, I saw in the docstring above. (My question was, whether the method does what the docstring says.) I do not know, if there is still the case, that someone wants to save another object (not Person and not Anonymous) into the field. If you want to catch this case too, you can do so by adding the next if clause.