Ticket #6069: 6777-escaping.2.patch
File 6777-escaping.2.patch, 1.6 KB (added by , 17 years ago) |
---|
-
django/contrib/auth/models.py
5 5 from django.db.models.manager import EmptyManager 6 6 from django.contrib.contenttypes.models import ContentType 7 7 from django.utils.encoding import smart_str 8 from django.utils.safestring import mark_safe 8 9 from django.utils.translation import ugettext_lazy as _ 9 10 import datetime 10 11 import urllib … … 132 133 first_name = models.CharField(_('first name'), max_length=30, blank=True) 133 134 last_name = models.CharField(_('last name'), max_length=30, blank=True) 134 135 email = models.EmailField(_('e-mail address'), blank=True) 135 password = models.CharField(_('password'), max_length=128, help_text= _("Use '[algo]$[salt]$[hexdigest]' or use the <a href=\"password/\">change password form</a>."))136 password = models.CharField(_('password'), max_length=128, help_text=mark_safe(_("Use '[algo]$[salt]$[hexdigest]' or use the <a href=\"password/\">change password form</a>."))) 136 137 is_staff = models.BooleanField(_('staff status'), default=False, help_text=_("Designates whether the user can log into this admin site.")) 137 138 is_active = models.BooleanField(_('active'), default=True, help_text=_("Designates whether this user can log into the Django admin. Unselect this instead of deleting accounts.")) 138 139 is_superuser = models.BooleanField(_('superuser status'), default=False, help_text=_("Designates that this user has all permissions without explicitly assigning them."))