{% extends "admin/change_form.html" %}

{% block object-tools-items %}
    {{ block.super }}
    {% if user.is_superuser and original.id != user.id %}
    <li><a href="{% url 'runas:enter' user_id=object_id %}">Impersonate {{ original.username }}</a></li>
    {% endif %}
{% endblock %}
