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

extra/django: fix from_model for non-auto-created AutoFields #3984

Merged
merged 1 commit into from May 13, 2024

Conversation

rascalking
Copy link
Contributor

the docs say from_model() won't try to create a strategy for any AutoFields, but the code only does that for AutoFields that have auto_created set to `True. this updates the code to match the docs.

this resolves issue #3978.

the docs say `from_model()` won't try to create a strategy for any
`AutoField`s, but the code only does that for `AutoField`s that have
`auto_created` set to `True.  this updates the code to match the docs.
Copy link
Member

@Zac-HD Zac-HD left a comment

Choose a reason for hiding this comment

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

Thanks @rascalking!

@Zac-HD Zac-HD disabled auto-merge May 13, 2024 02:24
@Zac-HD Zac-HD merged commit bfef674 into HypothesisWorks:master May 13, 2024
54 checks passed
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.

None yet

2 participants