app/soc/views/models/program.py
changeset 2871 e440e94a874b
parent 2867 e8d86272e6ea
child 2879 cb0f9b4646aa
--- a/app/soc/views/models/program.py	Mon Sep 07 20:07:58 2009 +0200
+++ b/app/soc/views/models/program.py	Mon Sep 07 20:26:39 2009 +0200
@@ -25,6 +25,8 @@
   ]
 
 
+import os
+
 from django import forms
 from django import http
 from django.utils.translation import ugettext
@@ -32,7 +34,6 @@
 from soc.logic import allocations
 from soc.logic import cleaning
 from soc.logic import dicts
-from soc.logic import system
 from soc.logic.helper import timeline as timeline_helper
 from soc.logic.models import host as host_logic
 from soc.logic.models import mentor as mentor_logic
@@ -415,7 +416,7 @@
     contents = [content]
 
     return_url =  "http://%(host)s%(index)s" % {
-      'host' : system.getHostname(),
+      'host' : os.environ['HTTP_HOST'],
       'index': redirects.getSlotsRedirect(program, params)
       }