Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7k
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
@auvipy For some reason I can't formally request a review, so I'm doing it this way :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
looks good.
I don't have merge permission (used to have, hmm). Anyway, can you please merge? Thx. |
3038494
intoencode:masterUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
The new behavior reported in#9410 is not really a bug, but makes for consistent treatment of uniqueness constraints from a model's
constraints
andunique_together
attribute.Presence of a uniqueness constraint impacts the default value of
required
, which was surprising to certain users. This PR makes this more explicit in documentation.Fix#9410