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

Closes #10361: Migrate from unique_together to UniqueConstraints #10368

Merged
merged 3 commits into from
Sep 27, 2022

Conversation

jeremystretch
Copy link
Member

Closes: #10361

  • Replace all definitions of unique_together in model Meta classes with a constraints list
  • Remove all custom validate_unique() methods, which are no longer needed as Django 4.1 introduces native constraint validation

@jeremystretch jeremystretch added the beta Concerns a bug/feature in a beta release label Sep 26, 2022
@jeremystretch jeremystretch force-pushed the 10361-unique-constraints branch from 2db1e87 to f51415c Compare September 27, 2022 19:36
@jeremystretch jeremystretch marked this pull request as ready for review September 27, 2022 19:37
@jeremystretch jeremystretch merged commit c349e06 into feature Sep 27, 2022
@jeremystretch jeremystretch deleted the 10361-unique-constraints branch September 27, 2022 19:55
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
beta Concerns a bug/feature in a beta release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant