mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fixes for some broken views
This commit is contained in:
parent
4ef1e4fc78
commit
8e65c0a120
@ -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/'
|
||||
|
||||
|
@ -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'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user