Ticket #6069: 6777-escaping.2.patch

File 6777-escaping.2.patch, 1.6 KB (added by Thomas Kerpe, 17 years ago)

New Patch with suggestion from comment:3

  • django/contrib/auth/models.py

     
    55from django.db.models.manager import EmptyManager
    66from django.contrib.contenttypes.models import ContentType
    77from django.utils.encoding import smart_str
     8from django.utils.safestring import mark_safe
    89from django.utils.translation import ugettext_lazy as _
    910import datetime
    1011import urllib
     
    132133    first_name = models.CharField(_('first name'), max_length=30, blank=True)
    133134    last_name = models.CharField(_('last name'), max_length=30, blank=True)
    134135    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>.")))
    136137    is_staff = models.BooleanField(_('staff status'), default=False, help_text=_("Designates whether the user can log into this admin site."))
    137138    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."))
    138139    is_superuser = models.BooleanField(_('superuser status'), default=False, help_text=_("Designates that this user has all permissions without explicitly assigning them."))
Back to Top