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: Don't infinite recurse on required self-ref keys. #710

Merged
merged 1 commit into from
Jun 25, 2023

Conversation

stephenh
Copy link
Collaborator

Skipping an integration test, but locally I made Author.mentor required and verified that it works.

Granted, making this work for a non-pg / non-sequence database is going to suck.

Fixes #702

Skipping an integration test, but locally I made Author.mentor required
and verified that it works.

Granted, making this work for a non-pg / non-sequence database is going
to suck.
@stephenh
Copy link
Collaborator Author

cc @chr1sjf0x and @roberthdg the factories should handle required self-referential FKs now.

@stephenh stephenh merged commit 6a16ac2 into main Jun 25, 2023
3 checks passed
@stephenh stephenh deleted the fix-required-self-ref-keys branch June 25, 2023 15:13
stephenh pushed a commit that referenced this pull request Jun 25, 2023
## [1.91.3](v1.91.2...v1.91.3) (2023-06-25)

### Bug Fixes

* Don't infinite recurse on required self-ref keys. ([#710](#710)) ([6a16ac2](6a16ac2))
@stephenh
Copy link
Collaborator Author

🎉 This PR is included in version 1.91.3 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

Support self-referential FKs in factories
1 participant