From b28c145454cefed7609bdc4a7c5589e666a4da51 Mon Sep 17 00:00:00 2001 From: corsaronero Date: Mon, 21 Nov 2022 13:11:49 +0000 Subject: [PATCH] changing saved value in database selfbuy_give_data to false when selfbuy true also in internview done() --- input/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/input/views.py b/input/views.py index 3ca0f33..2b28773 100644 --- a/input/views.py +++ b/input/views.py @@ -110,6 +110,8 @@ class InternView(LoginRequiredMixin, CookieWizardView): data = {} for form in form_list: data = {**data, **form.cleaned_data} + if data['selfbuy'] == 'TRUE': + data['selfbuy_give_data'] = 'False' print(data) # write data to database