2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 05:25:42 +00:00

Part Edit view now ajaxified

This commit is contained in:
Oliver
2018-04-26 23:28:27 +10:00
parent c0902626f4
commit 9fd275ed3e
2 changed files with 30 additions and 5 deletions

View File

@ -84,10 +84,12 @@ class PartDetail(DetailView):
template_name = 'part/detail.html'
class PartEdit(UpdateView):
class PartEdit(AjaxUpdateView):
model = Part
form_class = EditPartForm
template_name = 'part/edit.html'
ajax_template_name = 'modal_form.html'
ajax_form_title = 'Edit Part Properties'
class PartDelete(DeleteView):