fixed usage of if instead of elif

This commit is contained in:
Stefan Strobel 2024-11-15 22:55:30 +01:00
parent 5e478ba624
commit 3e72cfe5d8

View File

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