Opened 9 years ago

Closed 9 years ago

#25097 closed New feature (fixed)

Add a delete hook method on ModelFormSets

Reported by: Simon Litchfield Owned by: nobody
Component: Forms Version: 1.8
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

There are hooks to override how instances in a ModelFormSet are saved (save_new, save_existing), which is great. But there's no hook to override deletions.

https://github.com/litchfield/django/commit/1204ccc9e90ef02769548b05dd4e22f540e8e9f9

Change History (3)

comment:1 by Simon Litchfield, 9 years ago

Component: contrib.adminForms

comment:2 by Tim Graham, 9 years ago

Summary: No delete hook method on ModelFormSetsAdd a delete hook method on ModelFormSets
Triage Stage: UnreviewedAccepted

comment:3 by Tim Graham <timograham@…>, 9 years ago

Resolution: fixed
Status: newclosed

In 0ffa3943:

Fixed #25097 -- Added BaseModelFormSet.delete_existing() hook.

Note: See TracTickets for help on using tickets.
Back to Top