[Django] #32984: Allow overriding of deletion widget in formsets

9 views
Skip to first unread message

Django

unread,
Aug 3, 2021, 1:10:16 AM8/3/21
to django-...@googlegroups.com
#32984: Allow overriding of deletion widget in formsets
-------------------------------------+-------------------------------------
Reporter: Ties Jan | Owner: Ties Jan Hefting
Hefting |
Type: New | Status: assigned
feature |
Component: Forms | Version: dev
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
In Django 3.0 `ordering_widget` and `get_ordering_widget()` were
introduced (see #29956). The typical use case was to easily override the
`ORDER` field in formsets that are updated in the frontend. For the exact
same use case, I'd find it useful to see `deletion_widget` and
`get_deletion_widget()` getting introduced.

Discussion [https://groups.google.com/g/django-
developers/c/8PSZwWkVcBk/m/EtAMrvtfAwAJ initiated here] for this feature.

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

Django

unread,
Aug 3, 2021, 2:21:15 AM8/3/21
to django-...@googlegroups.com
#32984: Allow overriding of deletion widget in formsets
-------------------------------------+-------------------------------------
Reporter: Ties Jan Hefting | Owner: Ties Jan
| Hefting
Type: New feature | Status: assigned
Component: Forms | 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 Mariusz Felisiak):

* cc: Claude Paroz (added)
* stage: Unreviewed => Accepted


Comment:

Thanks, sounds reasonable.

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

Django

unread,
Aug 3, 2021, 5:12:39 AM8/3/21
to django-...@googlegroups.com
#32984: Allow overriding of deletion widget in formsets
-------------------------------------+-------------------------------------
Reporter: Ties Jan Hefting | Owner: Ties Jan
| Hefting
Type: New feature | Status: assigned
Component: Forms | 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 Ties Jan Hefting):

* has_patch: 0 => 1


Comment:

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

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

Django

unread,
Aug 3, 2021, 7:15:07 AM8/3/21
to django-...@googlegroups.com
#32984: Allow overriding of deletion widget in formsets
-------------------------------------+-------------------------------------
Reporter: Ties Jan Hefting | Owner: Ties Jan
| Hefting
Type: New feature | Status: assigned
Component: Forms | 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):

* stage: Accepted => Ready for checkin


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

Django

unread,
Aug 3, 2021, 3:07:04 PM8/3/21
to django-...@googlegroups.com
#32984: Allow overriding of deletion widget in formsets
-------------------------------------+-------------------------------------
Reporter: Ties Jan Hefting | Owner: Ties Jan
| Hefting
Type: New feature | Status: closed
Component: Forms | 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:"4f3acf957918843b4c40ff2edfb929bcfaa3730e" 4f3acf95]:
{{{
#!CommitTicketReference repository=""
revision="4f3acf957918843b4c40ff2edfb929bcfaa3730e"
Fixed #32984 -- Allowed customizing a deletion field widget in formsets.
}}}

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

Reply all
Reply to author
Forward
0 new messages