mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 12:36:45 +00:00
Remove unused view class
This commit is contained in:
parent
0a2a81582e
commit
6fd1abb07a
@ -145,29 +145,6 @@ class StockItemDetail(InvenTreeRoleMixin, DetailView):
|
|||||||
return super().get(request, *args, **kwargs)
|
return super().get(request, *args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
class StockItemNotes(InvenTreeRoleMixin, UpdateView):
|
|
||||||
""" View for editing the 'notes' field of a StockItem object """
|
|
||||||
|
|
||||||
context_object_name = 'item'
|
|
||||||
template_name = 'stock/item_notes.html'
|
|
||||||
model = StockItem
|
|
||||||
|
|
||||||
role_required = 'stock.view'
|
|
||||||
|
|
||||||
fields = ['notes']
|
|
||||||
|
|
||||||
def get_success_url(self):
|
|
||||||
return reverse('stock-item-notes', kwargs={'pk': self.get_object().id})
|
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
|
||||||
|
|
||||||
ctx = super().get_context_data(**kwargs)
|
|
||||||
|
|
||||||
ctx['editing'] = str2bool(self.request.GET.get('edit', ''))
|
|
||||||
|
|
||||||
return ctx
|
|
||||||
|
|
||||||
|
|
||||||
class StockLocationEdit(AjaxUpdateView):
|
class StockLocationEdit(AjaxUpdateView):
|
||||||
"""
|
"""
|
||||||
View for editing details of a StockLocation.
|
View for editing details of a StockLocation.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user