Skip to content

add system check to prohibit AutoField #185

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

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

timgraham
Copy link
Collaborator

No description provided.

It also requires implementing DatabaseOperations.integer_field_range() since
the base class's implementation doesn't handle "ObjectIdAutoField" and
ObjectIdAutoField accepts integers.
@timgraham timgraham force-pushed the validate-no-auto-field branch from ae8bf5a to ba4c521 Compare November 6, 2024 23:00
@timgraham timgraham marked this pull request as ready for review November 6, 2024 23:44
@timgraham timgraham merged commit ba4c521 into mongodb:main Nov 11, 2024
6 checks passed
@timgraham timgraham deleted the validate-no-auto-field branch November 11, 2024 12:55
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.

2 participants