# HG changeset patch # User Madhusudan.C.S # Date 1291902556 -19800 # Node ID c2edf840db70aabd450a9c2b0986ab8bcad8cc69 # Parent bc50906a9feebe3e68cea5db73cc554c8ffff88c User and Scope to get_or_create must be keyword arguments. diff -r bc50906a9fee -r c2edf840db70 project/scipycon/registration/views.py --- a/project/scipycon/registration/views.py Thu Dec 09 19:15:14 2010 +0530 +++ b/project/scipycon/registration/views.py Thu Dec 09 19:19:16 2010 +0530 @@ -379,18 +379,18 @@ 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')