From 51cbd72b4a9833dc715c1abad5eaf925f6c8e492 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 18 Jul 2013 18:39:26 -0600 Subject: fix the download page redirect for new django --- public/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public/views.py') 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 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): -- cgit v1.2.3-54-g00ecf