From 11962fab9da3839564fb132109267b8cd6feb6ac Mon Sep 17 00:00:00 2001
From: Dan McGee
Date: Thu, 28 Apr 2011 17:52:16 -0500
Subject: Remove more hardcoded isotests links
Signed-off-by: Dan McGee
---
isotests/views.py | 6 +++---
templates/isotests/add.html | 2 +-
templates/isotests/result_list.html | 2 +-
templates/isotests/thanks.html | 4 ++--
templates/public/index.html | 2 +-
5 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/isotests/views.py b/isotests/views.py
index 8e66d7b4..cfd6f408 100644
--- a/isotests/views.py
+++ b/isotests/views.py
@@ -1,7 +1,7 @@
from django import forms
from django.conf import settings
-from django.http import HttpResponseRedirect, Http404
-from django.shortcuts import get_object_or_404
+from django.http import Http404
+from django.shortcuts import get_object_or_404, redirect
from django.views.generic.simple import direct_to_template
from .models import (Architecture, BootType, Bootloader, ClockChoice,
@@ -58,7 +58,7 @@ def submit_test_result(request):
test = form.save(commit=False)
test.ip_address = request.META.get("REMOTE_ADDR", None)
test.save()
- return HttpResponseRedirect('/isotests/thanks/')
+ return redirect('releng-test-thanks')
else:
form = TestForm()
diff --git a/templates/isotests/add.html b/templates/isotests/add.html
index dadcdd10..3678532d 100644
--- a/templates/isotests/add.html
+++ b/templates/isotests/add.html
@@ -9,7 +9,7 @@
This page allows you to submit feedback after testing and using a
release engineering install ISO. If you do not currently have feedback to
submit, you may want to take a look at the current
- results page.
+ results page.