Commits

eevenson  committed 54b205b

Adds username to email context.

  • Participants
  • Parent commits 27bccd1
  • Branches username_addition

Comments (0)

Files changed (1)

File registration/models.py

             ``django.contrib.sites.models.RequestSite`` (if
             not). Consult the documentation for the Django sites
             framework for details regarding these objects' interfaces.
+            
+        ``username``
+            The name used to register.
 
         """
         ctx_dict = {'activation_key': self.activation_key,
                     'expiration_days': settings.ACCOUNT_ACTIVATION_DAYS,
-                    'site': site}
+                    'site': site,
+                    'username': self.user,
+                    }
         subject = render_to_string('registration/activation_email_subject.txt',
                                    ctx_dict)
         # Email subject *must not* contain newlines