diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-07-18 18:39:26 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-07-18 18:39:26 -0600 |
commit | 51cbd72b4a9833dc715c1abad5eaf925f6c8e492 (patch) | |
tree | fd8633a1fcc5811608a44bbd8e22f24b4feb496c | |
parent | 23daca7ab99e82dea6d09f687151f0313f7d2ca4 (diff) |
fix the download page redirect for new django
-rw-r--r-- | public/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/views.py b/public/views.py index 1ae091a0..b34c4d8a 100644 --- a/public/views.py +++ b/public/views.py @@ -5,7 +5,7 @@ from operator import attrgetter from django.conf import settings from django.contrib.auth.models import User from django.db.models import Count, Q -from django.http import Http404, HttpResponse +from django.http import Http404, HttpResponse, HttpResponseRedirect from django.shortcuts import render from django.views.decorators.cache import cache_control, cache_page @@ -81,7 +81,7 @@ def _mirror_urls(): @cache_control(max_age=300) def download(request): - return redirect('https://wiki.parabolagnulinux.org/get', permanent=True) + return HttpResponseRedirect('https://wiki.parabolagnulinux.org/get') @cache_control(max_age=300) def feeds(request): |