summaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorMadhusudan.C.S2010-12-09 19:15:14 +0530
committerMadhusudan.C.S2010-12-09 19:15:14 +0530
commit4196bbde787113cd6eba830b5a45941afee3b5e4 (patch)
tree878bc1c9210faa0b028004a60f35cef2eb8b60e7 /project
parent201a0526ddca3c2b46c6eca86d25b0d572d852ac (diff)
downloadscipycon-4196bbde787113cd6eba830b5a45941afee3b5e4.tar.gz
scipycon-4196bbde787113cd6eba830b5a45941afee3b5e4.tar.bz2
scipycon-4196bbde787113cd6eba830b5a45941afee3b5e4.zip
Creating Payment, Accommodation and Wifi objects require scope and user objects.
Diffstat (limited to 'project')
-rw-r--r--project/scipycon/registration/views.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/project/scipycon/registration/views.py b/project/scipycon/registration/views.py
index 505f14a..8279635 100644
--- a/project/scipycon/registration/views.py
+++ b/project/scipycon/registration/views.py
@@ -378,16 +378,19 @@ def regstats_download(request, scope):
row = []
row.append(reg.registrant.get_full_name())
row.append(reg.city)
- payment, create = reg.registrant.payment_set.get_or_create()
+ payment, create = reg.registrant.payment_set.get_or_create(
+ reg.registrant, reg.scope)
row.append('Yes' if payment.confirmed else 'No')
row.append('Yes' if reg.conference else 'No')
row.append('Yes' if reg.tutorial else 'No')
row.append('Yes' if reg.sprint else 'No')
- wifi, create = reg.registrant.wifi_set.get_or_create()
+ wifi, create = reg.registrant.wifi_set.get_or_create(
+ reg.registrant, reg.scope)
row.append(wifi.registration_id)
- row.append('Yes' if reg.registrant.payment_set.get().acco_confirmed
+ row.append('Yes' if payment.acco_confirmed
else 'No')
- acco, created = reg.registrant.accommodation_set.get_or_create()
+ acco, created = reg.registrant.accommodation_set.get_or_create(
+ reg.registrant, reg.scope)
row.append('Yes' if acco.accommodation_on_1st else 'No')
row.append('Yes' if acco.accommodation_on_2nd else 'No')
row.append('Yes' if acco.accommodation_on_3rd else 'No')