diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-09-22 22:26:56 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-09-22 22:26:56 +0000 |
| commit | a7efb3939fe2aa454a4f416706bcce6c99f3caed (patch) | |
| tree | 6f0110519260145597079786c77f2d3e9c7f9b67 /django/views/auth | |
| parent | 62f036d67dacf8955946c4cccf7e2d30fa0616ea (diff) | |
Converted load_and_render() calls to render_to_response() because of [664].
git-svn-id: http://code.djangoproject.com/svn/django/trunk@665 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/views/auth')
| -rw-r--r-- | django/views/auth/login.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/views/auth/login.py b/django/views/auth/login.py index b3d7d7da4a..8b375517cc 100644 --- a/django/views/auth/login.py +++ b/django/views/auth/login.py @@ -1,6 +1,6 @@ from django.parts.auth.formfields import AuthenticationForm from django.core import formfields, template_loader -from django.core.extensions import DjangoContext, load_and_render +from django.core.extensions import DjangoContext, render_to_response from django.models.auth import users from django.models.core import sites from django.utils.httpwrappers import HttpResponse, HttpResponseRedirect @@ -22,7 +22,7 @@ def login(request): else: errors = {} request.session.set_test_cookie() - return load_and_render('registration/login', { + return render_to_response('registration/login', { 'form': formfields.FormWrapper(manipulator, request.POST, errors), REDIRECT_FIELD_NAME: redirect_to, 'site_name': sites.get_current().name, @@ -33,7 +33,7 @@ def logout(request, next_page=None): try: del request.session[users.SESSION_KEY] except KeyError: - return load_and_render('registration/logged_out', context_instance=DjangoContext(request)) + return render_to_response('registration/logged_out', context_instance=DjangoContext(request)) else: # Redirect to this page until the session has been cleared. return HttpResponseRedirect(next_page or request.path) |
