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 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 row.append('Yes' if payment.confirmed else 'No') |
383 row.append('Yes' if payment.confirmed else 'No') |
383 row.append('Yes' if reg.conference else 'No') |
384 row.append('Yes' if reg.conference else 'No') |
384 row.append('Yes' if reg.tutorial else 'No') |
385 row.append('Yes' if reg.tutorial else 'No') |
385 row.append('Yes' if reg.sprint else 'No') |
386 row.append('Yes' if reg.sprint else 'No') |
386 wifi, create = reg.registrant.wifi_set.get_or_create() |
387 wifi, create = reg.registrant.wifi_set.get_or_create( |
|
388 reg.registrant, reg.scope) |
387 row.append(wifi.registration_id) |
389 row.append(wifi.registration_id) |
388 row.append('Yes' if reg.registrant.payment_set.get().acco_confirmed |
390 row.append('Yes' if payment.acco_confirmed |
389 else 'No') |
391 else 'No') |
390 acco, created = reg.registrant.accommodation_set.get_or_create() |
392 acco, created = reg.registrant.accommodation_set.get_or_create( |
|
393 reg.registrant, reg.scope) |
391 row.append('Yes' if acco.accommodation_on_1st else 'No') |
394 row.append('Yes' if acco.accommodation_on_1st else 'No') |
392 row.append('Yes' if acco.accommodation_on_2nd else 'No') |
395 row.append('Yes' if acco.accommodation_on_2nd else 'No') |
393 row.append('Yes' if acco.accommodation_on_3rd else 'No') |
396 row.append('Yes' if acco.accommodation_on_3rd else 'No') |
394 row.append('Yes' if acco.accommodation_on_4th else 'No') |
397 row.append('Yes' if acco.accommodation_on_4th else 'No') |
395 row.append('Yes' if acco.accommodation_on_5th else 'No') |
398 row.append('Yes' if acco.accommodation_on_5th else 'No') |