You can override a method called "save_model" inside your model admin
class, this will be called
whenever you hit save button of admin for a particular class. You can write
your custom logic in
this method.
ex
def save_model(self, request, obj, form, change):
Your Logic
Regards,
How can I edit admin's save button, so whenever I click save, I can be
redirected to a page after successfully inserting the values into db?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to
2 matches
Mail list logo