Re: [Django] #36592: Allow UniqueConstraint's nulls_distinct to accept a database's default value rather than raising a system check error

2 views
Skip to first unread message

Django

unread,
Sep 4, 2025, 9:49:14 AM (3 days ago) Sep 4
to django-...@googlegroups.com
#36592: Allow UniqueConstraint's nulls_distinct to accept a database's default
value rather than raising a system check error
-------------------------------------+-------------------------------------
Reporter: Russell Owen | Owner: (none)
Type: New feature | Status: closed
Component: Database layer | Version: 5.2
(models, ORM) |
Severity: Normal | Resolution: wontfix
Keywords: SQLite | Triage Stage:
UniqueConstraint | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Russell Owen):

Thank you. I had missed that. The warning message is still misleading,
however, since it complains even when the boolean value of the argument
matches the behavior of sqlite according to the message.

So I think this is a legitimate bug, but the bug is only that the warning
message is misleading. If boolean values are not acceptable for a given db
then the message should say that so the user knows how to fix the problem.
--
Ticket URL: <https://code.djangoproject.com/ticket/36592#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Reply all
Reply to author
Forward
0 new messages