Ticket #7775: 7775-duplicate-auth-code.diff

File 7775-duplicate-auth-code.diff, 680 bytes (added by Michael Newman, 16 years ago)
  • django/contrib/admin/sites.py

     
    249249        else:
    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'])
    257254                    if post_data and not post_data.has_key(LOGIN_FORM_KEY):
Back to Top