Get the username of a new user account into the activation email for django-registration?

125 Views Asked by At

Is there a way to do this? I'm not seeing it in the activation_email.txt template context but someone might have figured it out.

Thanks

1

There are 1 best solutions below

0
On BEST ANSWER

Take a look here - email is sent using self.user.send_email, so you could just add:

'user': self.user,

to the ctx_dict.