def _should_send_email(self):
 try:
  return self.get_profile().should_send_email
 except Profile.DoesNotExist:
  return True

def _should_send_email ( self ) : try : return self . get_profile ( ) . should_send_email except Profile . DoesNotExist : return True
get whether a user wants to receive emails .