Ticket #4225: contrib.auth.views.login_fixed.patch

File contrib.auth.views.login_fixed.patch, 532 bytes (added by mconte, 18 years ago)

Fixed previous patch. Please delete the old one.

  • views.py

     
    2525            return HttpResponseRedirect(redirect_to)
    2626    else:
    2727        errors = {}
     28    if Site._meta.installed:
     29        site_name = Site.objects.get_current().name
     30    else:
     31        site_name = 'my site'
    2832    request.session.set_test_cookie()
    2933    return render_to_response(template_name, {
    3034        'form': oldforms.FormWrapper(manipulator, request.POST, errors),
Back to Top