Fix OneToOneField Support

I choose patch from django ticket ##7135
Hope it is fine with you