diff --git a/InvenTree/stock/templates/stock/item_create.html b/InvenTree/stock/templates/stock/item_create.html deleted file mode 100644 index 862acc859b..0000000000 --- a/InvenTree/stock/templates/stock/item_create.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "create_edit_obj.html" %} - -{% block obj_title %} -Create a new stock item -{% endblock %} \ No newline at end of file diff --git a/InvenTree/stock/templates/stock/item_edit.html b/InvenTree/stock/templates/stock/item_edit.html deleted file mode 100644 index 5f0de213b9..0000000000 --- a/InvenTree/stock/templates/stock/item_edit.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "create_edit_obj.html" %} - -{% block obj_title %} -Edit stock item for part '{{ item.part.name }}' -{% endblock %} \ No newline at end of file diff --git a/InvenTree/stock/templates/stock/location_create.html b/InvenTree/stock/templates/stock/location_create.html deleted file mode 100644 index c79e09ae70..0000000000 --- a/InvenTree/stock/templates/stock/location_create.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "create_edit_obj.html" %} - -{% block obj_title %} -Create a new stock location -{% endblock %} \ No newline at end of file diff --git a/InvenTree/stock/templates/stock/location_edit.html b/InvenTree/stock/templates/stock/location_edit.html deleted file mode 100644 index d2fbdbb84e..0000000000 --- a/InvenTree/stock/templates/stock/location_edit.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "create_edit_obj.html" %} - -{% block obj_title %} -Edit stock location '{{ location.name }}' -{% endblock %} \ No newline at end of file diff --git a/InvenTree/stock/views.py b/InvenTree/stock/views.py index c4bf870e1c..9035e3e845 100644 --- a/InvenTree/stock/views.py +++ b/InvenTree/stock/views.py @@ -67,7 +67,6 @@ class StockLocationEdit(AjaxUpdateView): model = StockLocation form_class = EditStockLocationForm - template_name = 'stock/location_edit.html' context_object_name = 'location' ajax_template_name = 'modal_form.html' ajax_form_title = 'Edit Stock Location' @@ -80,7 +79,6 @@ class StockItemEdit(AjaxUpdateView): model = StockItem form_class = EditStockItemForm - # template_name = 'stock/item_edit.html' context_object_name = 'item' ajax_template_name = 'modal_form.html' ajax_form_title = 'Edit Stock Item' @@ -94,7 +92,6 @@ class StockLocationCreate(AjaxCreateView): model = StockLocation form_class = EditStockLocationForm - template_name = 'stock/location_create.html' context_object_name = 'location' ajax_template_name = 'modal_form.html' ajax_form_title = 'Create new Stock Location' @@ -120,7 +117,6 @@ class StockItemCreate(AjaxCreateView): model = StockItem form_class = CreateStockItemForm - template_name = 'stock/item_create.html' context_object_name = 'item' ajax_template_name = 'modal_form.html' ajax_form_title = 'Create new Stock Item'