#26988: User is_authenticated callable property is confusing to check
-------------------------------------+-------------------------------------
     Reporter:  Mark Tranchant       |                    Owner:  nobody
         Type:                       |                   Status:  closed
  Cleanup/optimization               |
    Component:  contrib.auth         |                  Version:  1.10
     Severity:  Release blocker      |               Resolution:  fixed
     Keywords:  user                 |             Triage Stage:  Accepted
  is_authenticated property test     |
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by WeizhongTu):

 I think it's better to add a remark to the code, because someone only read
 the code


 {{{
 if request.user.is_authenticated is True:  # won't work
     ...
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/26988#comment:9>
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/071.1ebd667e6e6db841e80fc39e3f457b45%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to