2017-03-26 00:50:10 +00:00
|
|
|
from django.contrib.auth.decorators import login_required
|
2012-07-12 05:32:07 +00:00
|
|
|
from django.shortcuts import render, redirect
|
|
|
|
|
|
|
|
|
|
|
|
@login_required
|
|
|
|
def dashboard(request):
|
|
|
|
if request.session.get("pending-token"):
|
2014-07-05 13:11:43 +00:00
|
|
|
return redirect("speaker_create_token",
|
|
|
|
request.session["pending-token"])
|
2012-07-12 05:32:07 +00:00
|
|
|
return render(request, "dashboard.html")
|