django_program.registration.views_checkin¶
Staff-facing JSON API views for on-site check-in and product redemption.
These views power the scanner UI used by registration desk volunteers.
All endpoints require staff or superuser authentication and are scoped
to a conference via the conference_slug URL kwarg. The scanner UI
is responsible for including the CSRF token in POST requests.
Classes
Look up an attendee by access code without performing check-in. |
|
Bulk export attendee data for offline scanner fallback. |
|
Redeem a purchased product (order line item) for an attendee. |
|
Scan an attendee's access code and perform check-in. |
|
Require staff or superuser access for check-in API views. |
- class django_program.registration.views_checkin.StaffRequiredMixin[source]¶
Bases:
objectRequire staff or superuser access for check-in API views.
Resolves the conference from
conference_slugand stores it onself.conference. Returns a 403 JSON error if the user lacks permission or a 404 if the conference does not exist.- conference: Conference¶
- class django_program.registration.views_checkin.ScanView[source]¶
Bases:
StaffRequiredMixin,ViewScan an attendee’s access code and perform check-in.
Accepts a JSON body with
access_codeand records the check-in viaCheckInService. Returns the attendee data and badge info on success.- post(request, **kwargs)[source]¶
Process a scan and check in the attendee.
- Parameters:
request (
HttpRequest) – The incoming HTTP request with JSON body.**kwargs (
str) – URL keyword arguments (unused).
- Return type:
JsonResponse- Returns:
JSON response with attendee data on success, or an error payload.
- class django_program.registration.views_checkin.LookupView[source]¶
Bases:
StaffRequiredMixin,ViewLook up an attendee by access code without performing check-in.
Read-only endpoint that returns attendee details, purchased products, check-in status, and redeemable line items.
- class django_program.registration.views_checkin.RedeemView[source]¶
Bases:
StaffRequiredMixin,ViewRedeem a purchased product (order line item) for an attendee.
Accepts a JSON body with
access_codeandline_item_idand records the redemption viaRedemptionService.
- class django_program.registration.views_checkin.OfflinePreloadView[source]¶
Bases:
StaffRequiredMixin,ViewBulk export attendee data for offline scanner fallback.
Returns a JSON array of attendee records for all paid orders in the conference. Optionally filtered by ticket type slug via the
ticket_typequery parameter.