diff --git a/vendor/registrasion/registrasion/reporting/views.py b/vendor/registrasion/registrasion/reporting/views.py index 499c7e1c..234d0196 100644 --- a/vendor/registrasion/registrasion/reporting/views.py +++ b/vendor/registrasion/registrasion/reporting/views.py @@ -1009,7 +1009,7 @@ def manifest(request, form): lambda i: i.attendee.attendeeprofilebase.attendee_name().lower() )) - headings = ["User ID", "Name", "Paid", "Unpaid", "Refunded"] + headings = ["User ID", "Name", "Checkin", "Paid", "Unpaid", "Refunded"] def format_items(item_list): strings = [ @@ -1020,10 +1020,14 @@ def manifest(request, form): output = [] for user in users_by_name: - items = users[user] + if hasattr(user, "checkin") and hasattr(user.checkin, "checkin_code"): + code = user.checkin.checkin_code + else: + code = None output.append([ user.id, user.attendee.attendeeprofilebase.attendee_name(), + code, format_items(items["paid"]), format_items(items["unpaid"]), format_items(items["refunded"]),