Current implementation of post_process_instance implies that user, that would override it must save manually modified instance inside method of child class.
But actually Im not sure - is it really intended by author to be as that. Old documentation documentation says that this method should return "modified instance" in "last possible moment" which might mean moment before saving.
post_process_instance in UserFixture illustrates what Im talking about, take a look, with this implementation any modifications done by post_process_instance will be lost during creation, including password, because instance not being saved.
Current implementation of
post_process_instance
implies that user, that would override it must save manually modified instance inside method of child class. But actually Im not sure - is it really intended by author to be as that. Old documentation documentation says that this method should return "modified instance" in "last possible moment" which might mean moment before saving.post_process_instance
inUserFixture
illustrates what Im talking about, take a look, with this implementation any modifications done bypost_process_instance
will be lost during creation, including password, because instance not being saved.