[Django] #32603: Changelist view in admin is missing transaction

6 views
Skip to first unread message

Django

unread,
Mar 29, 2021, 11:15:41 AM3/29/21
to django-...@googlegroups.com
#32603: Changelist view in admin is missing transaction
------------------------------------------+------------------------
Reporter: Vlastimil Zíma | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: dev
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------+------------------------
It seems that `changelist_view` in Django admin is missing a transaction.
Since the view may change data in database, it should be wrapped in a
transaction to prevent unexpected states in case of errors.

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

Django

unread,
Mar 30, 2021, 2:38:39 AM3/30/21
to django-...@googlegroups.com
#32603: Add transaction handling to Changelist list_editable processing.
--------------------------------+------------------------------------

Reporter: Vlastimil Zíma | Owner: nobody
Type: New feature | Status: new
Component: contrib.admin | Version: dev
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
--------------------------------+------------------------------------
Changes (by Carlton Gibson):

* type: Bug => New feature
* stage: Unreviewed => Accepted


Comment:

So, this has never been wrapped in a transaction.
See https://github.com/django/django/commit/7bc0878922 where it was added.

Happy to accept as a New Feature to investigate adding that. (I can't
immediately see any obvious blockers.)

--
Ticket URL: <https://code.djangoproject.com/ticket/32603#comment:1>

Django

unread,
Jun 24, 2021, 7:13:24 AM6/24/21
to django-...@googlegroups.com
#32603: Add transaction handling to Changelist list_editable processing.
-------------------------------------+-------------------------------------
Reporter: Vlastimil Zíma | Owner: Danil
| Khismatulin
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev

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
-------------------------------------+-------------------------------------
Changes (by Danil Khismatulin):

* owner: nobody => Danil Khismatulin
* status: new => assigned


--
Ticket URL: <https://code.djangoproject.com/ticket/32603#comment:2>

Django

unread,
Sep 23, 2022, 1:08:47 PM9/23/22
to django-...@googlegroups.com
#32603: Add transaction handling to Changelist list_editable processing.
--------------------------------+----------------------------------------
Reporter: Vlastimil Zíma | Owner: Shubh Parmar

Type: New feature | Status: assigned
Component: contrib.admin | Version: dev

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
--------------------------------+----------------------------------------
Changes (by Shubh Parmar):

* owner: nobody => Shubh Parmar


* status: new => assigned

Django

unread,
Sep 24, 2022, 12:01:19 PM9/24/22
to django-...@googlegroups.com
#32603: Add transaction handling to Changelist list_editable processing.
--------------------------------+----------------------------------------
Reporter: Vlastimil Zíma | Owner: Shubh Parmar
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

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

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/16100 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/32603#comment:3>

Django

unread,
Sep 27, 2022, 5:02:13 AM9/27/22
to django-...@googlegroups.com
#32603: Add transaction handling to Changelist list_editable processing.
--------------------------------+----------------------------------------
Reporter: Vlastimil Zíma | Owner: Shubh Parmar
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
--------------------------------+----------------------------------------
Changes (by Mariusz Felisiak):

* needs_tests: 0 => 1


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

Django

unread,
Oct 2, 2022, 6:49:04 AM10/2/22
to django-...@googlegroups.com
#32603: Add transaction handling to Changelist list_editable processing.
--------------------------------+----------------------------------------
Reporter: Vlastimil Zíma | Owner: Shubh Parmar
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

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

* needs_tests: 1 => 0


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

Django

unread,
Oct 4, 2022, 7:35:16 AM10/4/22
to django-...@googlegroups.com
#32603: Add transaction handling to Changelist list_editable processing.
--------------------------------+----------------------------------------
Reporter: Vlastimil Zíma | Owner: Shubh Parmar
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1

Easy pickings: 0 | UI/UX: 0
--------------------------------+----------------------------------------
Changes (by Mariusz Felisiak):

* needs_better_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/32603#comment:6>

Django

unread,
Oct 6, 2022, 2:45:20 PM10/6/22
to django-...@googlegroups.com
#32603: Add transaction handling to Changelist list_editable processing.
-------------------------------------+-------------------------------------

Reporter: Vlastimil Zíma | Owner: Shubh
| Parmar
Type: New feature | Status: assigned
Component: contrib.admin | Version: dev
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 Mariusz Felisiak):

* needs_better_patch: 1 => 0
* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/32603#comment:7>

Django

unread,
Oct 7, 2022, 2:05:18 AM10/7/22
to django-...@googlegroups.com
#32603: Add transaction handling to Changelist list_editable processing.
-------------------------------------+-------------------------------------
Reporter: Vlastimil Zíma | Owner: Shubh
| Parmar
Type: New feature | Status: closed
Component: contrib.admin | Version: dev
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:"7a39a691e1e3fe13588c8885a222eaa6a4648d01" 7a39a691]:
{{{
#!CommitTicketReference repository=""
revision="7a39a691e1e3fe13588c8885a222eaa6a4648d01"
Fixed #32603 -- Made ModelAdmin.list_editable use transactions.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/32603#comment:8>

Reply all
Reply to author
Forward
0 new messages