Code

Opened 3 years ago

Closed 3 years ago

#16604 closed New feature (fixed)

New save_related hook should be called from admin changelist_view as well as add and change

Reported by: pdeglopper@… Owned by: nobody
Component: contrib.admin Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The new hook save_related added for ticket 16115 should be called by the changelist_view when handling POSTed bulk-edit data. Although there is no possibility of inline formsets for the models in that view, it is possible for edits to the list_editable fields to require changes to the edited object's related objects.

Attachments (1)

save_related_in_changelist_view.diff (2.5 KB) - added by pdeglopper@… 3 years ago.

Download all attachments as: .zip

Change History (4)

Changed 3 years ago by pdeglopper@…

comment:1 Changed 3 years ago by julien

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 3 years ago by jezdez

  • Triage Stage changed from Accepted to Ready for checkin

comment:3 Changed 3 years ago by jezdez

  • Resolution set to fixed
  • Status changed from new to closed

In [16599]:

Fixed #16604 -- Use new save_related hook when saving objects on the changelist, too. Thanks, pdeglopper.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.