summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhusudan.C.S2010-12-09 19:19:16 +0530
committerMadhusudan.C.S2010-12-09 19:19:16 +0530
commit65ad4689d164434b068cb475aef4770b36697051 (patch)
tree1a73b0afad4833a8714c60c5a54816d28d7275a8
parent4196bbde787113cd6eba830b5a45941afee3b5e4 (diff)
downloadscipycon-65ad4689d164434b068cb475aef4770b36697051.tar.gz
scipycon-65ad4689d164434b068cb475aef4770b36697051.tar.bz2
scipycon-65ad4689d164434b068cb475aef4770b36697051.zip
User and Scope to get_or_create must be keyword arguments.
-rw-r--r--project/scipycon/registration/views.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/project/scipycon/registration/views.py b/project/scipycon/registration/views.py
index 8279635..c8d99ee 100644
--- a/project/scipycon/registration/views.py
+++ b/project/scipycon/registration/views.py
@@ -379,18 +379,18 @@ def regstats_download(request, scope):
row.append(reg.registrant.get_full_name())
row.append(reg.city)
payment, create = reg.registrant.payment_set.get_or_create(
- reg.registrant, reg.scope)
+ user=reg.registrant, scope=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(
- reg.registrant, reg.scope)
+ user=reg.registrant, scope=reg.scope)
row.append(wifi.registration_id)
row.append('Yes' if payment.acco_confirmed
else 'No')
acco, created = reg.registrant.accommodation_set.get_or_create(
- reg.registrant, reg.scope)
+ user=reg.registrant, scope=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')