Commits

Anonymous committed a934e9b

Updated to include MEDIA_URL in the context for the activation email, if we are sending HTML emails we may need images

  • Participants
  • Parent commits c2e3402

Comments (0)

Files changed (1)

File registration/models.py

         ctx_dict = {'activation_key': self.activation_key,
                     'expiration_days': settings.ACCOUNT_ACTIVATION_DAYS,
                     'site': site,
-                    'user': self.user }
+                    'user': self.user,
+                    'MEDIA_URL': settings.MEDIA_URL }
+                    
         subject = render_to_string('registration/activation_email_subject.txt',
                                     ctx_dict )
         subject = ''.join(subject.splitlines())