You should override change_form.html template and save it as

/your_project/templates/admin/your_app/change_form.html

or

/your_project/templates/admin/your_app/your_model/change_form.html

On 26 окт, 21:45, Aaron <aa...@genieknows.com> wrote:
> I need to add a button to the admin change form of certain models,
> which would be placed among the save buttons. I've tried overriding
> the template submit_line.html, but I am coming under the impression
> that this is not possible unless I override the template for my entire
> project.
>
> I need this button so that I can write a view or some other kind of
> handler that is able to access the model form contained in the admin
> change form page. If using the button, I'd override the add_view and
> change_view methods of the appropriate ModelAdmin, and do something
> special if "_mybutton" is in the POST data. If adding a button to the
> change form is not possible, is it possible to add some other link to
> the page that would allow me to access the form object?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to