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

fix(Options): pk cannot be None #1635

Closed
wants to merge 1 commit into from
Closed

Conversation

gg-mmill
Copy link
Contributor

Fix the Options.pk typing to always be a Field

I have made things!

Hello, I am no Django expert so I may be wrong, but it seems to me a Model always define a primary key (either explicitly or implicitly), which means Model._meta.pk always references a Field

Related issues

No issue, I can create one if needs be .

Fix the `Options.pk` typing to always be a `Field`
Copy link
Member

@sobolevn sobolevn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sobolevn
Copy link
Member

I think that I will close this PR, I hope that my explanation is good enough :)

Anyways, thanks a lot for taking your time to contribute! 👍
Please, feel free to send more PRs :)

@sobolevn sobolevn closed this Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants