From d18521da709646be3b41a2e8fc4e1650f6210633 Mon Sep 17 00:00:00 2001 From: Parbhat Puri <parbhatpuri17@gmail.com> Date: Fri, 3 Jul 2020 06:36:39 +0000 Subject: [PATCH] always send notice if send notice block is not created --- hypha/apply/determinations/forms.py | 2 +- hypha/apply/funds/models/submissions.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hypha/apply/determinations/forms.py b/hypha/apply/determinations/forms.py index 3e8e32518..19c265fdc 100644 --- a/hypha/apply/determinations/forms.py +++ b/hypha/apply/determinations/forms.py @@ -474,7 +474,7 @@ class DeterminationModelForm(StreamBaseForm, forms.ModelForm, metaclass=MixedMet def save(self, commit=True): self.instance.send_notice = ( self.cleaned_data[self.instance.send_notice_field.id] - if self.instance.send_notice_field else False + if self.instance.send_notice_field else True ) self.instance.message = self.cleaned_data[self.instance.message_field.id] try: diff --git a/hypha/apply/funds/models/submissions.py b/hypha/apply/funds/models/submissions.py index 1fcdbfb45..b79a0d1fe 100644 --- a/hypha/apply/funds/models/submissions.py +++ b/hypha/apply/funds/models/submissions.py @@ -544,8 +544,8 @@ class ApplicationSubmission( to funds in admin. This method checks if there are new determination forms attached to the - submission or we would still use the old determination forms for backword - compatiablity. + submission or we would still use the old determination forms for backward + compatibility. """ return self.get_from_parent('determination_forms').count() > 0 -- GitLab