Fixes for some broken views

This commit is contained in:
Oliver Walters 2019-05-04 17:20:05 +10:00
parent 4ef1e4fc78
commit 8e65c0a120
2 changed files with 2 additions and 1 deletions

View File

@ -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/'

View File

@ -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'