Switch index view to use a django generic standard view

This commit is contained in:
2011-01-10 14:20:14 +00:00
parent 4b8595eb52
commit 304bdd87b1
3 changed files with 6 additions and 10 deletions

View File

@@ -24,14 +24,6 @@ from eve_proxy.models import ApiAccessLog
from sso.models import ServiceAccount, Service, SSOUser, ExistingUser, ServiceError
from sso.forms import EveAPIForm, UserServiceAccountForm, ServiceAccountResetForm, UserLookupForm, APIPasswordForm
def index(request):
if request.user:
return redirect('sso.views.profile')
else:
return render_to_response('sso/index.html', context_instance=RequestContext(request))
@login_required
def profile(request):
""" Displays the user's profile page """