Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove checking of OneToOneField type in determining primary key name. #620

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sezabart
Copy link

@sezabart sezabart commented Dec 8, 2024

Tripping over the same issue that was documented here back in 2013 and without a solution, I decided to get rid of the error-causing clause and live dangerously.

In my experience this works, but there might be edge cases (@vdboor mentions one) that this is supposed to protect against, which it won't now. But at least I can use my OneToOneField's

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant