Hello everyone!
I am a junior who is first using OneToOneField, I found that the value which is giving to the field only could be a instance of the related model, can't be a value of the field which is specifed by the "to_field" ( else django will raise excption ).
In the other word, "to_field" does not make effect, django performing OneToOneField use PK.
I feel incomprehension and it makes me trouble on working.
Thanks!