From 6d413de6e5f8e00565cc4e8b2cb1c3be0025dab5 Mon Sep 17 00:00:00 2001 From: Madhusudan.C.S Date: Thu, 9 Dec 2010 19:34:39 +0530 Subject: Fix download PDF to download CSV and double quote all the names. --- project/scipycon/registration/views.py | 2 +- project/templates/registration/regstats.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/project/scipycon/registration/views.py b/project/scipycon/registration/views.py index b5ae5ea..0db3fab 100644 --- a/project/scipycon/registration/views.py +++ b/project/scipycon/registration/views.py @@ -380,7 +380,7 @@ def regstats_download(request, scope): regs = Registration.objects.all() for reg in regs: row = [] - row.append(reg.registrant.get_full_name()) + row.append('"%"' % reg.registrant.get_full_name()) row.append(reg.city) payment, create = reg.registrant.payment_set.get_or_create( user=reg.registrant, scope=reg.scope) diff --git a/project/templates/registration/regstats.html b/project/templates/registration/regstats.html index b5aeeea..681e00d 100644 --- a/project/templates/registration/regstats.html +++ b/project/templates/registration/regstats.html @@ -39,7 +39,7 @@


-To download PDF +To download CSV here {% endblock content %} -- cgit