376 regs = Registration.objects.all() |
376 regs = Registration.objects.all() |
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 row.append('Yes' if reg.registrant.payment_set.get().confirmed |
381 payment, create = reg.registrant.payment_set.get_or_create() |
382 else 'No') |
382 row.append('Yes' if payment.confirmed else 'No') |
383 row.append('Yes' if reg.conference else 'No') |
383 row.append('Yes' if reg.conference else 'No') |
384 row.append('Yes' if reg.tutorial else 'No') |
384 row.append('Yes' if reg.tutorial else 'No') |
385 row.append('Yes' if reg.sprint else 'No') |
385 row.append('Yes' if reg.sprint else 'No') |
386 row.append(reg.registrant.wifi_set.get().registration_id) |
386 wifi, create = reg.registrant.wifi_set.get_or_create() |
|
387 row.append(wifi.registration_id) |
387 row.append('Yes' if reg.registrant.payment_set.get().acco_confirmed |
388 row.append('Yes' if reg.registrant.payment_set.get().acco_confirmed |
388 else 'No') |
389 else 'No') |
389 acco, created = reg.registrant.accommodation_set.get_or_create() |
390 acco, created = reg.registrant.accommodation_set.get_or_create() |
390 row.append('Yes' if acco.accommodation_on_1st else 'No') |
391 row.append('Yes' if acco.accommodation_on_1st else 'No') |
391 row.append('Yes' if acco.accommodation_on_2nd else 'No') |
392 row.append('Yes' if acco.accommodation_on_2nd else 'No') |