Skip to content
Snippets Groups Projects
Commit a3161b41 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

remove the call from is_authenticated for django 2.0

parent d67b8346
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment