{% extends 'admin/change_form.html' %} {% block object-tools-items %} {% url 'admin:invoice' original.pk as invoice_url %} {% if invoice_url %}