fixed usage of if instead of elif
This commit is contained in:
parent
5e478ba624
commit
3e72cfe5d8
@ -598,7 +598,7 @@ class StockViewDetail(LoginRequiredMixin, BaseTemplateMixin, DetailView):
|
||||
|
||||
if 'submit-add-storage' in request.POST:
|
||||
return self.handle_add_storage_post(request, **kwargs)
|
||||
if 'submit-change-storage' in request.POST:
|
||||
elif 'submit-change-storage' in request.POST:
|
||||
return self.handle_change_storage_post(request, **kwargs)
|
||||
elif 'submit-delete-storage' in request.POST:
|
||||
return self.handle_del_storage_post(request, **kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user