#25075: Change is_authenticated() that depended on is_active
-------------------------------+--------------------
Reporter: djbaldey | Owner: nobody
Type: Uncategorized | Status: new
Component: contrib.auth | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 1 | UI/UX: 0
-------------------------------+--------------------
I propose to change the following:
{{{
@python_2_unicode_compatible
class AbstractBaseUser(models.Model):
...
is_active = True
...
def is_authenticated(self):
"""
Always return True if user is active. This is a way to tell if the
user has been
authenticated in templates. Also this used in `login_required`
decorator.
"""
return self.is_active
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25075>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.1d5abfbc9dd0ef192762057012543726%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.