#26388: make is_anonymous and is_authenticated properties
-------------------------------+-----------------------
Reporter: codyc4321 | Owner: codyc4321
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.9
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+-----------------------
is_anonymous and is_authenticated on the User models should be properties
because they're used like them and they just return True or False. It
becomes difficult to use in the shell seeing user.is_active behave like
expected but then user.is_anonymous is requiring user.is_anonymous() which
isn't fitting any logical pattern
--
Ticket URL: <https://code.djangoproject.com/ticket/26388>
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/052.e3f37a9ae1e70256b31d2aac323e9dba%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.