[SCM] live-studio branch, master, updated. be51da814fb12d25dce46a7f078a46f5c89bd777
Chris Lamb
lamby at debian.org
Fri Jul 30 02:52:33 UTC 2010
The following commit has been merged in the master branch:
commit 222feabbdd853ae1a0fc276886b88a7d6e67f87e
Author: Chris Lamb <lamby at debian.org>
Date: Wed Jul 28 17:33:23 2010 -0400
Use render_response instead of render_response
Signed-off-by: Chris Lamb <lamby at debian.org>
diff --git a/live_studio_www/config/views.py b/live_studio_www/config/views.py
index c0367a6..fefae82 100644
--- a/live_studio_www/config/views.py
+++ b/live_studio_www/config/views.py
@@ -1,6 +1,4 @@
-from django.shortcuts import render_to_response
+from live_studio_www.utils import render_response
def configs(request):
- return render_to_response('config/configs.html', {
- 'configs': request.user.configs.all(),
- })
+ return render_response(request, 'config/configs.html')
diff --git a/live_studio_www/static/views.py b/live_studio_www/static/views.py
index 1e2146f..efc9c18 100644
--- a/live_studio_www/static/views.py
+++ b/live_studio_www/static/views.py
@@ -1,7 +1,6 @@
-from django.shortcuts import render_to_response
-
+from live_studio_www.utils import render_response
from live_studio_www.auth.decorators import login_not_required
@login_not_required
def welcome(request):
- return render_to_response('static/welcome.html', {})
+ return render_response(request, 'static/welcome.html', {})
diff --git a/templates/config/configs.html b/templates/config/configs.html
index afe1ba5..46cb039 100644
--- a/templates/config/configs.html
+++ b/templates/config/configs.html
@@ -5,7 +5,7 @@
<table>
-{% for config in configs %}
+{% for config in request.user.configs.all %}
<tr>
<td><a href="{{ config.get_absolute_url }}">{{ config.name }}</td>
</tr>
--
live-studio
More information about the debian-live-changes
mailing list