From 3e72cfe5d8ed1ea4a063b37ae32aae82e48472c5 Mon Sep 17 00:00:00 2001 From: stefan Date: Fri, 15 Nov 2024 22:55:30 +0100 Subject: [PATCH] fixed usage of if instead of elif --- shimatta_kenkyusho/parts/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shimatta_kenkyusho/parts/views.py b/shimatta_kenkyusho/parts/views.py index 81d8a25..585f19f 100644 --- a/shimatta_kenkyusho/parts/views.py +++ b/shimatta_kenkyusho/parts/views.py @@ -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)