d5986de870
This only seems to be here to have some custom login_url used bypassing django's model. Well as we want to use django's model, this just won't do. So lets move to using django's model.
12 lines
383 B
Python
12 lines
383 B
Python
from __future__ import unicode_literals
|
|
|
|
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")
|