[SCM] live-studio branch, master, updated. be51da814fb12d25dce46a7f078a46f5c89bd777

Chris Lamb lamby at debian.org
Fri Jul 30 02:52:38 UTC 2010


The following commit has been merged in the master branch:
commit 975f4745b9123a299ec60ec4eed62028bbe68298
Author: Chris Lamb <lamby at debian.org>
Date:   Thu Jul 29 22:09:08 2010 -0400

    Welcome page doesn't make much sense if you are logged in.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>

diff --git a/live_studio/static/views.py b/live_studio/static/views.py
index d8cc6c6..fba443b 100644
--- a/live_studio/static/views.py
+++ b/live_studio/static/views.py
@@ -1,6 +1,12 @@
+from django.conf import settings
+from django.http import HttpResponseRedirect
+
 from live_studio.utils import render_response
 from live_studio.auth.decorators import login_not_required
 
 @login_not_required
 def welcome(request):
+    if request.user.is_authenticated():
+        return HttpResponseRedirect(settings.LOGIN_REDIRECT_URL)
+
     return render_response(request, 'static/welcome.html', {})

-- 
live-studio



More information about the debian-live-changes mailing list