# HG changeset patch # User Amit Sethi # Date 1290063015 -19800 # Node ID 1973bf1a0a5dc60bdee7c238d16026de0cf17830 # Parent 0149f28a4f74b5be793552169e172910d99559bc Changes to the template get-user-dump diff -r 0149f28a4f74 -r 1973bf1a0a5d project/scipycon/user/views.py --- a/project/scipycon/user/views.py Thu Nov 18 01:29:38 2010 +0530 +++ b/project/scipycon/user/views.py Thu Nov 18 12:20:15 2010 +0530 @@ -31,6 +31,9 @@ #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 @@ 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 -r 0149f28a4f74 -r 1973bf1a0a5d project/templates/user/dump.html --- a/project/templates/user/dump.html Thu Nov 18 01:29:38 2010 +0530 +++ b/project/templates/user/dump.html Thu Nov 18 12:20:15 2010 +0530 @@ -4,7 +4,7 @@ -Dump +Scipy User Dump @@ -74,14 +74,7 @@

Dump

-
-

Table of Contents

-
- -
-
+

1 Scipy Dump 12 Nov 6:34

@@ -109,7 +102,7 @@ -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 }}