Re: [Django] #36594: Clarify UniqueConstraint's nulls_distinct system check warning

10 views
Skip to first unread message

Django

unread,
Sep 5, 2025, 4:00:44 PMSep 5
to django-...@googlegroups.com
#36594: Clarify UniqueConstraint's nulls_distinct system check warning
-------------------------------------+-------------------------------------
Reporter: Russell Owen | Owner: Mridul
Type: | Status: assigned
Cleanup/optimization |
Component: Database layer | Version: 5.2
(models, ORM) |
Severity: Normal | Resolution:
Keywords: UniqueConstraint | Triage Stage: Accepted
nulls_distinct |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mridul):

* owner: (none) => Mridul
* status: new => assigned

--
Ticket URL: <https://code.djangoproject.com/ticket/36594#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Sep 10, 2025, 10:23:03 AM (11 days ago) Sep 10
to django-...@googlegroups.com
#36594: Clarify UniqueConstraint's nulls_distinct system check warning
-------------------------------------+-------------------------------------
Reporter: Russell Owen | Owner: Mridul
Type: | Status: assigned
Cleanup/optimization |
Component: Database layer | Version: 5.2
(models, ORM) |
Severity: Normal | Resolution:
Keywords: UniqueConstraint | Triage Stage: Accepted
nulls_distinct |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Samriddha Kumar Tripathi):

I’ve opened a pull request for this:
https://github.com/django/django/pull/19839
--
Ticket URL: <https://code.djangoproject.com/ticket/36594#comment:4>

Django

unread,
Sep 10, 2025, 10:23:16 AM (11 days ago) Sep 10
to django-...@googlegroups.com
#36594: Clarify UniqueConstraint's nulls_distinct system check warning
-------------------------------------+-------------------------------------
Reporter: Russell Owen | Owner: Mridul
Type: | Status: assigned
Cleanup/optimization |
Component: Database layer | Version: 5.2
(models, ORM) |
Severity: Normal | Resolution:
Keywords: UniqueConstraint | Triage Stage: Accepted
nulls_distinct |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Samriddha Kumar Tripathi):

* has_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/36594#comment:5>

Django

unread,
Sep 10, 2025, 10:31:20 AM (11 days ago) Sep 10
to django-...@googlegroups.com
#36594: Clarify UniqueConstraint's nulls_distinct system check warning
-------------------------------------+-------------------------------------
Reporter: Russell Owen | Owner: Mridul
Type: | Status: assigned
Cleanup/optimization |
Component: Database layer | Version: 5.2
(models, ORM) |
Severity: Normal | Resolution:
Keywords: UniqueConstraint | Triage Stage: Accepted
nulls_distinct |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mridul):

* has_patch: 1 => 0

Comment:

Hi Samriddha,
I just noticed that you submitted a PR for this ticket, which I had
already assigned to myself and have been working on.

Also, the PR doesn’t include the required documentation changes noted in
the ticket. I request you to hold off on further work and let me finish it
from here
--
Ticket URL: <https://code.djangoproject.com/ticket/36594#comment:6>

Django

unread,
Sep 15, 2025, 11:28:45 AM (6 days ago) Sep 15
to django-...@googlegroups.com
#36594: Clarify UniqueConstraint's nulls_distinct system check warning
-------------------------------------+-------------------------------------
Reporter: Russell Owen | Owner: Mridul
Type: | Status: assigned
Cleanup/optimization |
Component: Database layer | Version: 5.2
(models, ORM) |
Severity: Normal | Resolution:
Keywords: UniqueConstraint | Triage Stage: Accepted
nulls_distinct |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Mridul):

Will have a PR ready before the end of this week
--
Ticket URL: <https://code.djangoproject.com/ticket/36594#comment:7>

Django

unread,
Sep 16, 2025, 5:05:07 PM (5 days ago) Sep 16
to django-...@googlegroups.com
#36594: Clarify UniqueConstraint's nulls_distinct system check warning
-------------------------------------+-------------------------------------
Reporter: Russell Owen | Owner: Mridul
Type: | Status: assigned
Cleanup/optimization |
Component: Database layer | Version: 5.2
(models, ORM) |
Severity: Normal | Resolution:
Keywords: UniqueConstraint | Triage Stage: Accepted
nulls_distinct |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mridul):

* has_patch: 0 => 1

Comment:

PR: [https://github.com/django/django/pull/19870]
--
Ticket URL: <https://code.djangoproject.com/ticket/36594#comment:8>

Django

unread,
Sep 19, 2025, 6:56:46 AM (2 days ago) Sep 19
to django-...@googlegroups.com
#36594: Clarify UniqueConstraint's nulls_distinct system check warning
-------------------------------------+-------------------------------------
Reporter: Russell Owen | Owner: Mridul
Type: | Status: assigned
Cleanup/optimization |
Component: Database layer | Version: 5.2
(models, ORM) |
Severity: Normal | Resolution:
Keywords: UniqueConstraint | Triage Stage: Accepted
nulls_distinct |
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 1 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Sarah Boyce):

* needs_better_patch: 0 => 1

--
Ticket URL: <https://code.djangoproject.com/ticket/36594#comment:9>
Reply all
Reply to author
Forward
0 new messages