diff --git a/dbmail/models.py b/dbmail/models.py index 128e9d1..27a0e83 100644 --- a/dbmail/models.py +++ b/dbmail/models.py @@ -130,8 +130,8 @@ def get_auth(self): return dict( host=self.credential.host, port=self.credential.port, - username=self.credential.username, - password=self.credential.password, + username=str(self.credential.username), + password=str(self.credential.password), use_tls=self.credential.use_tls, fail_silently=self.credential.fail_silently )