From b5c66d1ac13f77e480fbdecf417a6dffeb89040e Mon Sep 17 00:00:00 2001 From: Amit Sethi Date: Thu, 18 Nov 2010 12:20:15 +0530 Subject: Changes to the template get-user-dump --- project/scipycon/user/views.py | 5 ++++- project/templates/user/dump.html | 13 +++---------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/project/scipycon/user/views.py b/project/scipycon/user/views.py index 5f3b1be..5822157 100644 --- a/project/scipycon/user/views.py +++ b/project/scipycon/user/views.py @@ -31,6 +31,9 @@ from project.scipycon.utils import set_message_cookie #User_dump Http404 Error from django.http import Http404 +#for user_dump creation +from project.scipycon.registration.models import Accommodation + @login_required def account(request, scope, template_name="user/account.html"): @@ -297,7 +300,7 @@ def get_user_dump(request, scope,template_name='user/dump.html'): accomodation_require = Accommodation.objects.filter(user__username=obj.registrant.username)[0] row['sex'] = accomodation_require.sex except: - row['sex'] = 'Acco. Unspecified' + row['sex'] = '-' row['city'] = obj.city row['organization'] = obj.organisation row['occupation'] = obj.occupation diff --git a/project/templates/user/dump.html b/project/templates/user/dump.html index 6caa25d..aba9dc9 100644 --- a/project/templates/user/dump.html +++ b/project/templates/user/dump.html @@ -4,7 +4,7 @@
-