{{{
def post_save_action(request, obj):
"""
Hook to perform an action after the 'Save' button has been pressed
when adding a new object.
"""
pass
...
self.save_model(request, new_object, form, not add)
self.save_related(request, form, formsets, not add)
self.post_save_action(request, new_object)
}}}
The method should call after the ModelAdmin.save_related() is completed.
--
Ticket URL: <https://code.djangoproject.com/ticket/34880>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: assigned => closed
* resolution: => wontfix
Comment:
Hi!
Feature requests require discussion on the Django Forum
(https://code.djangoproject.com/wiki/DevelopersMailingList) first where
more people will see the request and an appropriate discussion can be had.
Having said that it's unlikely to be accepted as the admin isn't intended
to be a universal app platform.
Also check out the signals to see whether this is appropriate for your
needs: https://code.djangoproject.com/wiki/DevelopersMailingList
If you want further help on this, please seek help from one of our
friendly communities: https://www.djangoproject.com/community/
--
Ticket URL: <https://code.djangoproject.com/ticket/34880#comment:1>
Comment (by Mariusz Felisiak):
Also, `post_save` signal already exists and we don't want to add redundant
`contrib`-specific signals.
--
Ticket URL: <https://code.djangoproject.com/ticket/34880#comment:2>