Ticket #12648: patch.diff
File patch.diff, 680 bytes (added by , 15 years ago) |
---|
-
django/contrib/auth/models.py
305 305 306 306 def email_user(self, subject, message, from_email=None): 307 307 "Sends an e-mail to this User." 308 """ 308 309 from django.core.mail import send_mail 309 310 send_mail(subject, message, from_email, [self.email]) 310 311 """ 312 from django.core.mail import EmailMessage 313 email = EmailMessage(subject, message, self.email) 314 email.send() 315 311 316 def get_profile(self): 312 317 """ 313 318 Returns site-specific profile for this user. Raises