improve delete confirm
{% include 'editor/fragment_levels.html' %}
<h3>{% blocktrans %}Delete {{ model_title }}{% endblocktrans %}</h3>
-<form action="{{ path }}" method="post">
+<form action="{{ request.path }}" data-keep-geometry method="post">
{% csrf_token %}
<p>{% blocktrans %}Please confirm deleting: {{ obj_title }}{% endblocktrans %}</p>
<input type="hidden" name="delete" value="1">
<input type="hidden" name="pk" value="{{ pk }}">
{% buttons %}
<button class="invisiblesubmit" type="submit"></button>
- <a class="btn btn-default" href="{{ path }}">
+ <a class="btn btn-default" href="{{ request.path }}">
{% trans 'Cancel' %}
</a>
<button type="submit" name="delete_confirm" value="1" class="btn btn-danger pull-right" data-reload-geometries>
