Changes between Initial Version and Version 1 of Ticket #6991


Ignore:
Timestamp:
Jun 16, 2008, 3:51:17 PM (16 years ago)
Author:
Ramiro Morales
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6991 – Description

    initial v1  
    1 django/contrib/admin/views/decorators.py:        if request.user.is_authenticated() and request.user.is_staff:
     1{{{
     2django/contrib/admin/views/decorators.py:
     3if request.user.is_authenticated() and request.user.is_staff:
     4}}}
    25
    3 ### COMMENT: request.user.is_staff is True implied that request.user.is_authenticated() is True, so request.user.is_authenticated() could be omitted.
     6### COMMENT: {{{request.user.is_staff is True}}} implied that {{{request.user.is_authenticated()}}} is True, so {{{request.user.is_authenticated()}}} could be omitted.
    47
    5 docs/authentication.txt:        if not (request.user.is_authenticated() and request.user.has_perm('polls.can_vote')):
     8{{{
     9docs/authentication.txt:
     10if not (request.user.is_authenticated() and request.user.has_perm('polls.can_vote')):
     11}}}
    612
    7 ### COMMENT: request.user.has_perm('polls.can_vote') is True implied that request.user.is_authenticated() is True, so request.user.is_authenticated() could be omitted.
     13### COMMENT: {{{request.user.has_perm('polls.can_vote') is True}}} implied that {{{request.user.is_authenticated()}}} is True, so {{{request.user.is_authenticated()}}} could be omitted.
    814
    915p.s. may save some precious cpu cycles on Google App Engine. :P
Back to Top