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'