Django

Code

Changeset 8006

Show
Ignore:
Timestamp:
07/20/08 06:37:20 (6 months ago)
Author:
russellm
Message:

Fixed #7775 -- Removed some duplicated code from the admin login sequence. Thanks to Mnewman for the report.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/admin/sites.py

    r7967 r8006  
    250250            if user.is_active and user.is_staff: 
    251251                login(request, user) 
    252                 # TODO: set last_login with an event. 
    253                 user.last_login = datetime.datetime.now() 
    254                 user.save() 
    255252                if request.POST.has_key('post_data'): 
    256253                    post_data = _decode_post_data(request.POST['post_data'])