Commits

Evgeniy Kirov committed e7b120a

add user to the send_activation_email's context data

Comments (0)

Files changed (1)

registration/models.py

         """
         ctx_dict = {'activation_key': self.activation_key,
                     'expiration_days': settings.ACCOUNT_ACTIVATION_DAYS,
-                    'site': site}
+                    'site': site,
+                    'user': self.user}
         subject = render_to_string('registration/activation_email_subject.txt',
                                    ctx_dict)
         # Email subject *must not* contain newlines