diff options
author | Madhusudan.C.S | 2010-12-09 19:34:39 +0530 |
---|---|---|
committer | Madhusudan.C.S | 2010-12-09 19:34:39 +0530 |
commit | 6d413de6e5f8e00565cc4e8b2cb1c3be0025dab5 (patch) | |
tree | 8051421392cccb3de2ba97fc727be3c79e0cf60c /project | |
parent | 4a14fb6f60217df994839f181a6f04bc04fbffea (diff) | |
download | scipycon-6d413de6e5f8e00565cc4e8b2cb1c3be0025dab5.tar.gz scipycon-6d413de6e5f8e00565cc4e8b2cb1c3be0025dab5.tar.bz2 scipycon-6d413de6e5f8e00565cc4e8b2cb1c3be0025dab5.zip |
Fix download PDF to download CSV and double quote all the names.
Diffstat (limited to 'project')
-rw-r--r-- | project/scipycon/registration/views.py | 2 | ||||
-rw-r--r-- | 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 @@ </table> <br/><br/><br/> -<strong>To download PDF +<strong>To download CSV <a href="{% url scipycon_regstats_download params.scope %}">here</a></strong> {% endblock content %} |