From 8e65c0a12090cf01451e47111337ecbb32006d5f Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 4 May 2019 17:20:05 +1000 Subject: [PATCH] Fixes for some broken views --- InvenTree/part/views.py | 1 + InvenTree/stock/views.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/InvenTree/part/views.py b/InvenTree/part/views.py index 27d52dcdb7..2c67df7153 100644 --- a/InvenTree/part/views.py +++ b/InvenTree/part/views.py @@ -395,6 +395,7 @@ class CategoryDelete(AjaxDeleteView): """ Delete view to delete a PartCategory """ model = PartCategory ajax_template_name = 'part/category_delete.html' + ajax_form_title = 'Delete Part Category' context_object_name = 'category' success_url = '/part/' diff --git a/InvenTree/stock/views.py b/InvenTree/stock/views.py index 715e7103ba..7a9513c8c8 100644 --- a/InvenTree/stock/views.py +++ b/InvenTree/stock/views.py @@ -205,7 +205,7 @@ class StockLocationDelete(AjaxDeleteView): model = StockLocation success_url = '/stock' - template_name = 'stock/location_delete.html' + ajax_template_name = 'stock/location_delete.html' context_object_name = 'location' ajax_form_title = 'Delete Stock Location'