{% extends "admin/change_form.html" %}{% load admin_urls i18n %}
{% comment %}
A simple test to show that overriding templates still works.
{% endcomment %}
{% block content %}
{{ block.super }}
{% if original %}
Demo code. Available slugs:
{# The most efficient solution. See article/details.html for the inefficient one. #}
{% for code, slug in original.get_all_slugs.iteritems %}
/{{ code }}/{{ slug }}/
{% endfor %}
{% endif %}
{% endblock %}
{% block object-tools-items %}
{% comment %}
As the URL is translated too, make sure the admin points to the current one.
Using `get_absolute_url` call so the object returns the URL in the currently activated language.
{% endcomment %}