Can't concatenate string and proxy

This commit is contained in:
Yohann D'ANELLO 2020-08-01 22:30:34 +02:00
parent 8434841ec5
commit c0cdb13130
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ class Profile(models.Model):
return reverse('user_detail', args=(self.pk,)) return reverse('user_detail', args=(self.pk,))
def send_email_validation_link(self): def send_email_validation_link(self):
subject = "[Note Kfet]" + _("Activate your Note Kfet account") subject = "[Note Kfet]" + str(_("Activate your Note Kfet account"))
message = loader.render_to_string('registration/mails/email_validation_email.txt', message = loader.render_to_string('registration/mails/email_validation_email.txt',
{ {
'user': self.user, 'user': self.user,