equal
deleted
inserted
replaced
60 wifi = Wifi.objects.get(user=reg.registrant) |
60 wifi = Wifi.objects.get(user=reg.registrant) |
61 |
61 |
62 # TODO: This is an ugly hack to add accommodation form |
62 # TODO: This is an ugly hack to add accommodation form |
63 # details at later stage for SciPy.in 2010. This must be |
63 # details at later stage for SciPy.in 2010. This must be |
64 # removed for SciPy.in 2011 |
64 # removed for SciPy.in 2011 |
65 acco, created = Accommodation.objects.get_or_create(user=reg.registrant, |
65 acco, acco_created = Accommodation.objects.get_or_create( |
66 scope=scope_entity) |
66 user=reg.registrant, scope=scope_entity) |
67 |
67 |
68 if reg.registrant != request.user: |
68 if reg.registrant != request.user: |
69 redirect_to = reverse('scipycon_account', kwargs={'scope': scope}) |
69 redirect_to = reverse('scipycon_account', kwargs={'scope': scope}) |
70 |
70 |
71 return set_message_cookie( |
71 return set_message_cookie( |