Files @ e726ff21a8ff
Branch filter:

Location: symposion_app/vendor/symposion/reviews/context_processors.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 symposion.proposals.models import ProposalSection


def reviews(request):
    sections = []
    manage_sections = {}
    for section in ProposalSection.objects.all():
        if request.user.has_perm("reviews.can_review_%s" % section.section.slug):
            sections.append(section)
        if request.user.has_perm("reviews.can_manage_%s" % section.section.slug):
            manage_sections.setdefault(section, []).append
    return {
        "review_sections": sections,
        "manage_sections": manage_sections
    }