Re: Make a "save and preview" button in admin.

2009-06-17 Thread Rodrigo Cea
Thanks, I'll look into it and post back if I solve this. Rodrigo On Jun 17, 1:32 pm, Liam Chasteen wrote: > Check out the article on developerworks: > > http://www.ibm.com/developerworks/opensource/library/os-django-admin/... > > The method they show changes the redirect after saving changes, b

Re: Make a "save and preview" button in admin.

2009-06-17 Thread Liam Chasteen
Check out the article on developerworks: http://www.ibm.com/developerworks/opensource/library/os-django-admin/index.html The method they show changes the redirect after saving changes, but should be easily modifiable to simply create a popup preview window when the user clicks the "Save and cont

Make a "save and preview" button in admin.

2009-06-07 Thread Rodrigo Cea
I have added a "preview" button to the admin, like so: # In "templates/admin/core/change_form.html" {% extends "admin/change_form.html" %} {% load i18n %} {% block object-tools %} {% if change %}{% if not is_popup %} Preview {{ form.data}} {% trans "History" %} {% if has_absolute_url %