Re: [Django] #31500: Allow QuerySet.in_bulk() for fields with total UniqueConstraints.

5 views
Skip to first unread message

Django

unread,
Apr 22, 2020, 7:34:22 AM4/22/20
to django-...@googlegroups.com
#31500: Allow QuerySet.in_bulk() for fields with total UniqueConstraints.
-------------------------------------+-------------------------------------
Reporter: Hannes Ljungberg | Owner: Hannes
| Ljungberg
Type: Bug | Status: assigned
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Hannes Ljungberg):

PR: https://github.com/django/django/pull/12774

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

Django

unread,
Apr 23, 2020, 2:06:59 AM4/23/20
to django-...@googlegroups.com
#31500: Allow QuerySet.in_bulk() for fields with total UniqueConstraints.
-------------------------------------+-------------------------------------
Reporter: Hannes Ljungberg | Owner: Hannes
| Ljungberg
Type: Bug | Status: assigned
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/31500#comment:4>

Django

unread,
Apr 23, 2020, 2:26:49 AM4/23/20
to django-...@googlegroups.com
#31500: Allow QuerySet.in_bulk() for fields with total UniqueConstraints.
-------------------------------------+-------------------------------------
Reporter: Hannes Ljungberg | Owner: Hannes
| Ljungberg
Type: Bug | Status: closed

Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak <felisiak.mariusz@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"447980e72ac01da1594dd3373a03ba40b7ee6f80" 447980e7]:
{{{
#!CommitTicketReference repository=""
revision="447980e72ac01da1594dd3373a03ba40b7ee6f80"
Fixed #31500 -- Fixed detecting of unique fields in QuerySet.in_bulk()
when using Meta.constraints.

Detection of unique fields now takes into account non-partial unique
constraints.
}}}

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

Reply all
Reply to author
Forward
0 new messages