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 %} <ul class="object-tools"> <li> <a href="/preview_article/{{ object_id }}" target="_preview">Preview </ a> </li> {{ form.data}} <li><a href="history/" class="historylink">{% trans "History" %}</ a></li> {% if has_absolute_url %}<li><a href="../../../r/ {{ content_type_id }}/{{ object_id }}/" class="viewsitelink" target="preview">{% trans "View on site" %}</a></li>{% endif%} </ul> {% endif %}{% endif %} {% endblock %} Where "/preview_article/{{ object_id }}" shows me the relevant article. However, this means that to preview a change to an article, I need to first "Save and continue editing", wait for it to reload and then hit "Preview". Is there a way to modify the behavior of the "Save and continue editing" button to first save the object and then open the preview URL? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---