redirect to index if company was deleted

This commit is contained in:
Matthias 2022-05-04 12:39:56 +02:00
parent 00dffd953b
commit 5435cd28c9
No known key found for this signature in database
GPG Key ID: AB6D0E6C4CB65093

View File

@ -338,6 +338,8 @@ $('#delete-part').click(function() {
onSuccess: function() {
{% if part.manufacturer %}
window.location.href = "{% url 'company-detail' part.manufacturer.id %}";
{% else%}
window.location.href = "{% url 'index' %}";
{% endif %}
}
});