Commits

Simon Meers  committed 6558cb1

Add user to activation_email context

  • Participants
  • Parent commits d36a382

Comments (0)

Files changed (1)

File registration/models.py

             not). Consult the documentation for the Django sites
             framework for details regarding these objects' interfaces.
 
+        ``user``
+            The User object associated with the RegistrationProfile.
+            
         """
         ctx_dict = {'activation_key': self.activation_key,
                     'expiration_days': settings.ACCOUNT_ACTIVATION_DAYS,
+                    'user': self.user,
                     'site': site}
         subject = render_to_string('registration/activation_email_subject.txt',
                                    ctx_dict)