symposion_app/vendor/symposion/views.py

11 lines
342 B
Python
Raw Normal View History

from django.contrib.auth.decorators import login_required
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"])
return render(request, "dashboard.html")