Files @ e726ff21a8ff
Branch filter:

Location: symposion_app/vendor/symposion/conference/views.py

James Polley
Create regidesk app

Shows summary of all attendees with a paid ticket, including
boarding_pass status.

Currently, regidesk allows staff with the requisite permission the
ability to view the checkin status of attendees, and email the user
their boarding pass email.

Included is a view for the user to retrieve their own QR code (in case
they got the plain-text version of the email, they can use this to
download an image to their phone for faster checkin)
from django.http import Http404
from django.shortcuts import render

from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User


@login_required
def user_list(request):

    if not request.user.is_staff:
        raise Http404()

    return render(request, "symposion/conference/user_list.html", {
        "users": User.objects.all(),
    })