New hook to allow change objects after all inline formsets have been saved
|Reported by:||Igor Sobreira||Owned by:||Jannis Leidel|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Today we have
ModelAdmin , but there is no default place where we can change objects after the object and all related formsets have been saved.
You can override
response_add() , but I don't think that's a good place to deal with model objects, since the purpose of these methods is to send messages to user and return the correct
I'm attaching a patch with the proposed hook, I think it's better to have a method that wraps
save_formet() than create an empty method in the end of
change_view() . But it's just a suggestion.
I can write docs if you like the idea.
Change History (19)
comment:3 Changed 6 years ago by
|Triage Stage:||Unreviewed → Accepted|
Changed 6 years ago by
comment:9 Changed 6 years ago by
|Owner:||changed from Igor Sobreira to Julien Phalip|
|Status:||assigned → new|
comment:12 Changed 6 years ago by
|Owner:||set to Jannis Leidel|
|Status:||new → closed|