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 @@ -Dump +Scipy User Dump @@ -74,14 +74,7 @@ lang="en" xml:lang="en">

Dump

-
-

Table of Contents

-
- -
-
+

1 Scipy Dump 12 Nov 6:34

@@ -109,7 +102,7 @@ L - Bring a Laptop -first namelast nameGenderCityOrganizationOccupationCSTL +first namelast nameGenderCityOrganizationOccupationCSTL {% for row in rows %} {{ row.first_name }}{{ row.last_name }}{{ row.sex }}{{ row.city }}{{ row.organization }}{{ row.occupation }}{{ row.conference }}{{ row.sprint }}{{ row.tutorial }}{{ row.wifi }} -- cgit From 73b83c40d6e97dbef647dda0f78039a1d6bac4f4 Mon Sep 17 00:00:00 2001 From: Amit Sethi Date: Thu, 18 Nov 2010 12:25:58 +0530 Subject: some more template changes to get-user-dump --- project/templates/user/dump.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/project/templates/user/dump.html b/project/templates/user/dump.html index aba9dc9..061201b 100644 --- a/project/templates/user/dump.html +++ b/project/templates/user/dump.html @@ -71,13 +71,12 @@ lang="en" xml:lang="en">
-

Dump

+

User Dump

-

1 Scipy Dump 12 Nov 6:34

-- cgit