allow custom delete urls to be used
diff --git a/xos/templates/admin/submit_line.html b/xos/templates/admin/submit_line.html
new file mode 100644
index 0000000..dcac235
--- /dev/null
+++ b/xos/templates/admin/submit_line.html
@@ -0,0 +1,15 @@
+{% load i18n %}
+<div class="submit-row clearfix">
+ {% if show_save %}<button type="submit" class="btn btn-high btn-info" name="_save">{% trans 'Save' %}</button>{% endif %}
+ {% if show_save_and_continue %}<button type="submit" name="_continue" class=" btn btn-high">{% trans 'Save and continue editing' %}</button>{% endif %}
+ {% if show_save_as_new %}<button type="submit" name="_saveasnew" class="btn">{% trans 'Save as new' %}</button>{%endif%}
+ {% if show_save_and_add_another %}<button type="submit" name="_addanother" class="btn">{% trans 'Save and add another' %}</button>{% endif %}
+
+ {% if show_delete_link %}
+ {% if custom_delete_url %}
+ <a href="{{ custom_delete_url }}" class="text-error deletelink">{% trans "Delete" %}</a>
+ {% else %}
+ <a href="delete/" class="text-error deletelink">{% trans "Delete" %}</a>
+ {% endif %}
+ {% endif %}
+</div>