Opened 19 years ago

Closed 19 years ago

Last modified 18 years ago

#308 closed defect (duplicate)

Adding inline-edited related records during _post_save

Reported by: nichyoung Owned by: Adrian Holovaty
Component: contrib.admin Version:
Severity: normal Keywords: _post_save edit_inline
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I need to add records to a child table in the _post_save and can imagine many other situations where this process would be useful.

This process itself functions as expected; however, when using the admin interface where the child table is edited inline the display of the process fails. I believe the cause of the failure to be an expectation from the admin interface that the added child record would be present on the previous page when it isn't the process fails with a KeyError.

I've made a trivial patch to catch the error and continue but I don't have a sufficiently good understanding of Django to know whether this will cause additional problems.

Attachments (2)

patch (1.4 KB ) - added by nichyoung 19 years ago.
Simple patch
patch.2 (755 bytes ) - added by nichyoung 19 years ago.
The correct simple patch

Download all attachments as: .zip

Change History (4)

by nichyoung, 19 years ago

Attachment: patch added

Simple patch

comment:1 by nichyoung, 19 years ago

Oops - added the correct file but from the wrong computer - will try again.

by nichyoung, 19 years ago

Attachment: patch.2 added

The correct simple patch

comment:2 by Adrian Holovaty, 19 years ago

Resolution: duplicate
Status: newclosed

This will be fixed in the new-admin branch (or shortly after).

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