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