Files @ e726ff21a8ff
Branch filter:

Location: symposion_app/vendor/regidesk/regidesk/admin.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.contrib import admin

# Register your models here.
from regidesk.models import BoardingPassTemplate, BoardingPass, CheckIn

admin.site.register(
    BoardingPassTemplate,
    list_display=['label','from_address','subject']
)

admin.site.register( BoardingPass,
                     list_display=['to_address','created','sent'],
                     search_fields=['to_address'],
                     filter_fields=['created','sent'],
                     readonly_fields=['created','sent',
                                      'template', 'to_address', 'from_address',
                                      'subject', 'body','html_body' ]
)

admin.site.register(
    CheckIn,
    list_display=['user','seen','checked_in','checkin_code'],
    search_fields=['user','checkin_code'],
    filter_fields=['seen','checked_in'],
    readonly_fields=['user','seen','checked_in','checkin_code']
)