Ticket #7629: login_cache.diff

File login_cache.diff, 810 bytes (added by permon, 7 years ago)
  • django/contrib/admin/views/decorators.py

     
    1212from django.contrib.auth import authenticate, login
    1313from django.shortcuts import render_to_response
    1414from django.utils.translation import ugettext_lazy, ugettext as _
     15from django.views.decorators.cache import never_cache
    1516
    1617ERROR_MESSAGE = ugettext_lazy("Please enter a correct username and password. Note that both fields are case-sensitive.")
    1718LOGIN_FORM_KEY = 'this_is_the_login_form'
    1819
     20@never_cache
    1921def _display_login_form(request, error_message=''):
    2022    request.session.set_test_cookie()
    2123    if request.POST and 'post_data' in request.POST:
Back to Top