The Django admin site is brilliant, and we use it a lot at my work. My question is this – how do I add an additional button at the bottom, along side the ‘save’, ‘save and continue editing’ etc buttons, that saves the model and then redirects to the ‘view on site’ button that is available at the top right of the form for models that have that defined?
Thanks in advance!
Besides adding button in change_form template, you would want to override
response_changemethod of ModelAdmin (andresponse_add).Something like this should work: