Enis Afgan
Enis Afgan

Reputation: 180

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

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

Upvotes: 0

Views: 117

Answers (1)

Tomasz Zieliński
Tomasz Zieliński

Reputation: 16367

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

'user': self.user,

to the ctx_dict.

Upvotes: 1

Related Questions