aboutsummaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
authorAndy Doan <andy.doan@linaro.org>2016-02-03 13:37:48 -0600
committerAndy Doan <andy.doan+gerrit@linaro.org>2016-02-10 17:56:08 +0000
commitf92c5d7c1cc3a9c11b055abb75c8b8fab75dd287 (patch)
tree58c8c5e4ee97b2f2249c342c827a4c6bb0eae577 /urls.py
parent0f64aee3664759c0b2a739dc3dcc534204cdb9b1 (diff)
django 1.8: fix warning in urls.py
Redirect's now require the user to specify "permanent=True" if its supposed to be a permanent redirect. This change is compatible with both Django 1.6 and 1.8 Change-Id: I00e639713e367ce8df5bfd5fc913bb79f0e84c69 Reviewed-on: https://review.linaro.org/10368 Reviewed-by: Ben Copeland <ben.copeland@linaro.org> Reviewed-by: pfalcon Sokolovsky <paul.sokolovsky@linaro.org>
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/urls.py b/urls.py
index 92cf42e..99ead13 100644
--- a/urls.py
+++ b/urls.py
@@ -21,7 +21,8 @@ urlpatterns = patterns(
# same server. When we get rid of apache openid protection,
# we can go back to using just "openid" here.
url(r'^linaro-openid/', include('django_openid_auth.urls')),
- url(r'^login/?$', RedirectView.as_view(url='/linaro-openid/login/')),
+ url(r'^login/?$',
+ RedirectView.as_view(url='/linaro-openid/login/', permanent=True)),
url(r'^logout/?$', 'django.contrib.auth.views.logout'),
# Handle JS libs and CSS.