21b2a01a84
This is all noop in Py3, and Py2 is broke now in various places. Dropping Py2 code as it will not be a thing going forward. Django 2 is the next release, Py2 support will be dropped, as such, dropping this is forward looking.
10 lines
342 B
Python
10 lines
342 B
Python
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"):
|
|
return redirect("speaker_create_token",
|
|
request.session["pending-token"])
|
|
return render(request, "dashboard.html")
|