From 4d720be02d83d09086dd4e3bd0a2ba399c1c72f1 Mon Sep 17 00:00:00 2001 From: stvbdn Date: Mon, 25 Aug 2014 13:25:04 -0600 Subject: [PATCH] Update change_form.html Changed URL for object to use get_absolute_url if the object has_absolute_url --- suit/templates/admin/change_form.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/suit/templates/admin/change_form.html b/suit/templates/admin/change_form.html index 1b144f44..dfa0b474 100644 --- a/suit/templates/admin/change_form.html +++ b/suit/templates/admin/change_form.html @@ -1,6 +1,6 @@ {% extends "admin/base_site.html" %} {% load i18n admin_static admin_modify suit_tags admin_urls %} -{% load url from future %} +v{% load url from future %} {% block extrahead %}{{ block.super }} {% url 'admin:jsi18n' as jsi18nurl %} @@ -103,9 +103,10 @@

{% trans 'tools'|capfirst %}

{% if has_absolute_url %}
  • - {% trans "View on site" %} -
  • + + {% endif %} {% if has_add_permission %}