From 31332bd7f5504e7ee0a93e3ddd9511beeb22d2d7 Mon Sep 17 00:00:00 2001 From: Manav Gabhawala Date: Fri, 24 Mar 2017 17:06:13 -0400 Subject: [PATCH] Added mentoring information for registration --- MHacks/v1/scan_event.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MHacks/v1/scan_event.py b/MHacks/v1/scan_event.py index 66d9c00..7679086 100644 --- a/MHacks/v1/scan_event.py +++ b/MHacks/v1/scan_event.py @@ -59,6 +59,9 @@ def swag_scan_verify(request, scanned_user): succeeded = False else: all_fields.append(_create_field('T-SHIRT SIZE', registration.t_shirt_size)) + application = scanned_user.application_or_none() + if application and application.mentoring: + all_fields.append(_create_field('MENTOR', 'Yes', color='0000FF')) return succeeded, all_fields