Skip to content

add support for unique constraints #128

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 3 commits into from
Oct 22, 2024

Conversation

timgraham
Copy link
Collaborator

refs #104

@timgraham timgraham force-pushed the unique-constraints branch 3 times, most recently from 88a8960 to 7679ae0 Compare September 19, 2024 02:07
@timgraham timgraham force-pushed the unique-constraints branch 2 times, most recently from ad9e91e to 1fa1624 Compare October 1, 2024 00:23
@timgraham timgraham force-pushed the unique-constraints branch 4 times, most recently from 9d58631 to 28c3218 Compare October 9, 2024 22:03
@timgraham timgraham marked this pull request as ready for review October 9, 2024 22:03
@timgraham timgraham requested review from Jibola and WaVEV October 10, 2024 16:17
Comment on lines +50 to +51
for constraint in model._meta.constraints:
self.add_constraint(model, constraint)
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this addition also mean that this PR will support BaseConstraints?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

BaseConstraint is just a common base class. It isn't something that's used on a model's Meta.constraints.

@timgraham timgraham merged commit d3a106c into mongodb:main Oct 22, 2024
3 checks passed
@timgraham timgraham deleted the unique-constraints branch October 22, 2024 00:37
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.

3 participants