app/soc/views/models/program.py
changeset 1747 02f15a955c42
parent 1745 d8a45f622241
child 1750 1ac2d27fdb6b
--- a/app/soc/views/models/program.py	Sun Mar 08 14:37:28 2009 +0000
+++ b/app/soc/views/models/program.py	Sun Mar 08 14:38:24 2009 +0000
@@ -23,6 +23,8 @@
   ]
 
 
+import os
+
 from django import http
 from django import forms
 from django.utils import simplejson
@@ -254,10 +256,16 @@
     content = lists.getListContent(request, org_params, filter=filter)
     contents = [content]
 
+    return_url =  "http://%(host)s%(index)s" % {
+      'host' : os.environ['HTTP_HOST'],
+      'index': redirects.getSlotsRedirect(program, params)
+      }
+
     context = {
         'total_slots': program.slots,
         'uses_json': True,
-        'uses_slot_allocator': True
+        'uses_slot_allocator': True,
+        'return_url': return_url,
         }
 
     return self._list(request, org_params, contents, page_name, context)