diff options
| author | Paul Oswald | 2012-02-20 22:16:51 +0900 |
|---|---|---|
| committer | Paul Oswald | 2012-02-20 22:16:51 +0900 |
| commit | 50198935af1f772835a3c26943cbb245295c60e5 (patch) | |
| tree | 70f2bc794229bb14ab5f74f236e2bd917e3223b6 /djangorestframework/utils/staticviews.py | |
| parent | bf717eff6420af78a41e1359cdd7b9e409076281 (diff) | |
| download | django-rest-framework-50198935af1f772835a3c26943cbb245295c60e5.tar.bz2 | |
Rename templates to 'base.html', 'api.html', 'api.txt' and 'login.html'
Diffstat (limited to 'djangorestframework/utils/staticviews.py')
| -rw-r--r-- | djangorestframework/utils/staticviews.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/utils/staticviews.py b/djangorestframework/utils/staticviews.py index caa63ccd..7cbc0b9b 100644 --- a/djangorestframework/utils/staticviews.py +++ b/djangorestframework/utils/staticviews.py @@ -12,7 +12,7 @@ import base64 # be making settings changes in order to accomodate django-rest-framework @csrf_protect @never_cache -def api_login(request, template_name='djangorestframework/api_login.html', +def api_login(request, template_name='djangorestframework/login.html', redirect_field_name=REDIRECT_FIELD_NAME, authentication_form=AuthenticationForm): """Displays the login form and handles the login action.""" @@ -57,5 +57,5 @@ def api_login(request, template_name='djangorestframework/api_login.html', }, context_instance=RequestContext(request)) -def api_logout(request, next_page=None, template_name='djangorestframework/api_login.html', redirect_field_name=REDIRECT_FIELD_NAME): +def api_logout(request, next_page=None, template_name='djangorestframework/login.html', redirect_field_name=REDIRECT_FIELD_NAME): return logout(request, next_page, template_name, redirect_field_name) |
