From 0654fa7cc9d10456c6c39a21fab3bf8275b9748a Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 18 Apr 2019 23:35:06 +1000 Subject: [PATCH] Deleted unused forms in Build - These now use modal forms - Removed redundant templates --- InvenTree/build/templates/build/create.html | 5 ----- InvenTree/build/templates/build/update.html | 5 ----- InvenTree/build/views.py | 2 -- 3 files changed, 12 deletions(-) delete mode 100644 InvenTree/build/templates/build/create.html delete mode 100644 InvenTree/build/templates/build/update.html diff --git a/InvenTree/build/templates/build/create.html b/InvenTree/build/templates/build/create.html deleted file mode 100644 index b53fc58fec..0000000000 --- a/InvenTree/build/templates/build/create.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "create_edit_obj.html" %} - -{% block obj_title %} -Create a new build -{% endblock %} \ No newline at end of file diff --git a/InvenTree/build/templates/build/update.html b/InvenTree/build/templates/build/update.html deleted file mode 100644 index c5691d145f..0000000000 --- a/InvenTree/build/templates/build/update.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends "create_edit_obj.html" %} - -{% block obj_title %} -Edit build details -{% endblock %} \ No newline at end of file diff --git a/InvenTree/build/views.py b/InvenTree/build/views.py index 0344de81ed..f3f7bd79f3 100644 --- a/InvenTree/build/views.py +++ b/InvenTree/build/views.py @@ -70,7 +70,6 @@ class BuildAllocate(DetailView): class BuildCreate(AjaxCreateView): model = Build - template_name = 'build/create.html' context_object_name = 'build' form_class = EditBuildForm ajax_form_title = 'Start new Build' @@ -96,7 +95,6 @@ class BuildUpdate(AjaxUpdateView): model = Build form_class = EditBuildForm context_object_name = 'build' - template_name = 'build/update.html' ajax_form_title = 'Edit Build Details' ajax_template_name = 'modal_form.html'