From a3161b4107e121ca903b820ef1fabef09cf0d95e Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Tue, 13 Mar 2018 12:22:14 +0000 Subject: [PATCH] remove the call from is_authenticated for django 2.0 --- opentech/apply/funds/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opentech/apply/funds/models.py b/opentech/apply/funds/models.py index a770504ce..bb6ad0786 100644 --- a/opentech/apply/funds/models.py +++ b/opentech/apply/funds/models.py @@ -63,7 +63,7 @@ class SubmittableStreamForm(AbstractStreamForm): return ApplicationSubmission def process_form_submission(self, form): - if not form.user.is_authenticated(): + if not form.user.is_authenticated: form.user = None return self.get_submission_class().objects.create( form_data=form.cleaned_data, @@ -507,7 +507,7 @@ class ApplicationSubmission(WorkflowHelpers, AbstractFormSubmission): return self.phase.active def ensure_user_has_account(self): - if self.user and self.user.is_authenticated(): + if self.user and self.user.is_authenticated: self.form_data['email'] = self.user.email self.form_data['full_name'] = self.user.get_full_name() else: -- GitLab