377 for reg in regs: |
377 for reg in regs: |
378 row = [] |
378 row = [] |
379 row.append(reg.registrant.get_full_name()) |
379 row.append(reg.registrant.get_full_name()) |
380 row.append(reg.city) |
380 row.append(reg.city) |
381 payment, create = reg.registrant.payment_set.get_or_create( |
381 payment, create = reg.registrant.payment_set.get_or_create( |
382 reg.registrant, reg.scope) |
382 user=reg.registrant, scope=reg.scope) |
383 row.append('Yes' if payment.confirmed else 'No') |
383 row.append('Yes' if payment.confirmed else 'No') |
384 row.append('Yes' if reg.conference else 'No') |
384 row.append('Yes' if reg.conference else 'No') |
385 row.append('Yes' if reg.tutorial else 'No') |
385 row.append('Yes' if reg.tutorial else 'No') |
386 row.append('Yes' if reg.sprint else 'No') |
386 row.append('Yes' if reg.sprint else 'No') |
387 wifi, create = reg.registrant.wifi_set.get_or_create( |
387 wifi, create = reg.registrant.wifi_set.get_or_create( |
388 reg.registrant, reg.scope) |
388 user=reg.registrant, scope=reg.scope) |
389 row.append(wifi.registration_id) |
389 row.append(wifi.registration_id) |
390 row.append('Yes' if payment.acco_confirmed |
390 row.append('Yes' if payment.acco_confirmed |
391 else 'No') |
391 else 'No') |
392 acco, created = reg.registrant.accommodation_set.get_or_create( |
392 acco, created = reg.registrant.accommodation_set.get_or_create( |
393 reg.registrant, reg.scope) |
393 user=reg.registrant, scope=reg.scope) |
394 row.append('Yes' if acco.accommodation_on_1st else 'No') |
394 row.append('Yes' if acco.accommodation_on_1st else 'No') |
395 row.append('Yes' if acco.accommodation_on_2nd else 'No') |
395 row.append('Yes' if acco.accommodation_on_2nd else 'No') |
396 row.append('Yes' if acco.accommodation_on_3rd else 'No') |
396 row.append('Yes' if acco.accommodation_on_3rd else 'No') |
397 row.append('Yes' if acco.accommodation_on_4th else 'No') |
397 row.append('Yes' if acco.accommodation_on_4th else 'No') |
398 row.append('Yes' if acco.accommodation_on_5th else 'No') |
398 row.append('Yes' if acco.accommodation_on_5th else 'No') |