#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)
Change History (4)
by , 19 years ago
comment:1 by , 19 years ago
Oops - added the correct file but from the wrong computer - will try again.
comment:2 by , 19 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
This will be fixed in the new-admin branch (or shortly after).
Simple patch