Django

Code

Changeset 7414

Show
Ignore:
Timestamp:
04/12/08 20:50:29 (3 months ago)
Author:
mtredinnick
Message:

Updated the inline help text for User.is_active.

Fixed #6881. Refs #7011.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/auth/models.py

    r6912 r7414  
    135135    password = models.CharField(_('password'), max_length=128, help_text=_("Use '[algo]$[salt]$[hexdigest]' or use the <a href=\"password/\">change password form</a>.")) 
    136136    is_staff = models.BooleanField(_('staff status'), default=False, help_text=_("Designates whether the user can log into this admin site.")) 
    137     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.")) 
     137    is_active = models.BooleanField(_('active'), default=True, help_text=_("Designates whether this user should be treated as active. Unselect this instead of deleting accounts.")) 
    138138    is_superuser = models.BooleanField(_('superuser status'), default=False, help_text=_("Designates that this user has all permissions without explicitly assigning them.")) 
    139139    last_login = models.DateTimeField(_('last login'), default=datetime.datetime.now) 
     
    227227            if hasattr(backend, "get_all_permissions"): 
    228228                permissions.update(backend.get_all_permissions(self)) 
    229         return permissions  
     229        return permissions 
    230230 
    231231    def has_perm(self, perm): 
     
    239239        if not self.is_active: 
    240240            return False 
    241          
     241 
    242242        # Superusers have all permissions. 
    243243        if self.is_superuser: 
    244244            return True 
    245              
     245 
    246246        # Otherwise we need to check the backends. 
    247247        for backend in auth.get_backends():