Fix download PDF to download CSV and double quote all the names.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Thu, 09 Dec 2010 19:34:39 +0530
changeset 349 4a07363689b5
parent 348 88cb9f42880c
child 350 baf939071b60
Fix download PDF to download CSV and double quote all the names.
project/scipycon/registration/views.py
project/templates/registration/regstats.html
--- a/project/scipycon/registration/views.py	Thu Dec 09 19:33:57 2010 +0530
+++ b/project/scipycon/registration/views.py	Thu Dec 09 19:34:39 2010 +0530
@@ -380,7 +380,7 @@
     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)
--- a/project/templates/registration/regstats.html	Thu Dec 09 19:33:57 2010 +0530
+++ b/project/templates/registration/regstats.html	Thu Dec 09 19:34:39 2010 +0530
@@ -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 %}