Django

Code

Changeset 3930

Show
Ignore:
Timestamp:
10/24/06 15:45:28 (2 years ago)
Author:
adrian
Message:

Fixed #2890 -- Added default values of False for auth.User is_staff and is_superuser. Thanks for the suggestion, dummy@habmalnefrage.de

Files:

Legend:

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

    r3924 r3930  
    9393    email = models.EmailField(_('e-mail address'), blank=True) 
    9494    password = models.CharField(_('password'), maxlength=128, help_text=_("Use '[algo]$[salt]$[hexdigest]'")) 
    95     is_staff = models.BooleanField(_('staff status'), help_text=_("Designates whether the user can log into this admin site.")) 
     95    is_staff = models.BooleanField(_('staff status'), default=False, help_text=_("Designates whether the user can log into this admin site.")) 
    9696    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.")) 
    97     is_superuser = models.BooleanField(_('superuser status'), help_text=_("Designates that this user has all permissions without explicitly assigning them.")) 
     97    is_superuser = models.BooleanField(_('superuser status'), default=False, help_text=_("Designates that this user has all permissions without explicitly assigning them.")) 
    9898    last_login = models.DateTimeField(_('last login'), default=models.LazyDate()) 
    9999    date_joined = models.DateTimeField(_('date joined'), default=models.LazyDate())