Thanks to visit codestin.com
Credit goes to github.com

Skip to content

docs: unique constraints cause 'required=True' #9725

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

peterthomassen
Copy link
Contributor

@peterthomassen peterthomassen commented Jun 25, 2025

The new behavior reported in #9410 is not really a bug, but makes for consistent treatment of uniqueness constraints from a model's constraints and unique_together attribute.

Presence of a uniqueness constraint impacts the certain default value of required, which was surprising to users. This PR makes this more explicit in documentation.

Fix #9410

@peterthomassen
Copy link
Contributor Author

@auvipy For some reason I can't formally request a review, so I'm doing it this way :)

Copy link
Member

@auvipy auvipy left a comment

Choose a reason for hiding this comment

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

looks good.

@browniebroke browniebroke changed the title docs: unique constraints cause 'required=True', fixes #9410 docs: unique constraints cause 'required=True' Jun 25, 2025
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.

Issue with upgrade from 3.14 to 3.15.1, null values no longer allowed in POST
3 participants