Skip to content

Commit

Permalink
Fixed conditional which broken Django 1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
brosner committed Jul 22, 2016
1 parent c4abfe2 commit b2691a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion account/views.py
Expand Up @@ -201,7 +201,7 @@ def create_email_address(self, form, **kwargs):
kwargs.setdefault("primary", True)
kwargs.setdefault("verified", False)
if self.signup_code:
kwargs["verified"] = self.signup_code.email and self.created_user.email == self.signup_code.email
kwargs["verified"] = self.created_user.email == self.signup_code.email if self.signup_code.email else False
return EmailAddress.objects.add_email(self.created_user, self.created_user.email, **kwargs)

def use_signup_code(self, user):
Expand Down

0 comments on commit b2691a6

Please sign in to comment.