equal
deleted
inserted
replaced
29 from project.scipycon.user.utils import scipycon_createuser |
29 from project.scipycon.user.utils import scipycon_createuser |
30 from project.scipycon.utils import set_message_cookie |
30 from project.scipycon.utils import set_message_cookie |
31 |
31 |
32 #User_dump Http404 Error |
32 #User_dump Http404 Error |
33 from django.http import Http404 |
33 from django.http import Http404 |
|
34 #for user_dump creation |
|
35 from project.scipycon.registration.models import Accommodation |
|
36 |
34 |
37 |
35 @login_required |
38 @login_required |
36 def account(request, scope, template_name="user/account.html"): |
39 def account(request, scope, template_name="user/account.html"): |
37 """Displays the main screen of the current user's account. |
40 """Displays the main screen of the current user's account. |
38 """ |
41 """ |
295 row['last_name'] = obj.registrant.last_name |
298 row['last_name'] = obj.registrant.last_name |
296 try: |
299 try: |
297 accomodation_require = Accommodation.objects.filter(user__username=obj.registrant.username)[0] |
300 accomodation_require = Accommodation.objects.filter(user__username=obj.registrant.username)[0] |
298 row['sex'] = accomodation_require.sex |
301 row['sex'] = accomodation_require.sex |
299 except: |
302 except: |
300 row['sex'] = 'Acco. Unspecified' |
303 row['sex'] = '-' |
301 row['city'] = obj.city |
304 row['city'] = obj.city |
302 row['organization'] = obj.organisation |
305 row['organization'] = obj.organisation |
303 row['occupation'] = obj.occupation |
306 row['occupation'] = obj.occupation |
304 row['conference'] = obj.conference |
307 row['conference'] = obj.conference |
305 row['sprint'] = obj.sprint |
308 row['sprint'] = obj.sprint |