Add the string control character for CSV full name field.
authorMadhusudan.C.S <madhusudancs@gmail.com>
Thu, 09 Dec 2010 20:08:25 +0530
changeset 354 5fb620cdacf2
parent 353 bd083c34aa43
child 355 bce85144acd5
Add the string control character for CSV full name field.
project/scipycon/registration/views.py
project/templates/registration/regstats.html
--- a/project/scipycon/registration/views.py	Thu Dec 09 20:06:34 2010 +0530
+++ b/project/scipycon/registration/views.py	Thu Dec 09 20:08:25 2010 +0530
@@ -430,7 +430,7 @@
         wifi, create = reg.registrant.wifi_set.get_or_create(
           user=reg.registrant, scope=reg.scope)
 
-        row.append('"%"' % reg.registrant.get_full_name())
+        row.append('"%s"' % reg.registrant.get_full_name())
         row.append(acco.sex)
         row.append(reg.city)
         row.append('Yes' if payment.confirmed else 'No')
--- a/project/templates/registration/regstats.html	Thu Dec 09 20:06:34 2010 +0530
+++ b/project/templates/registration/regstats.html	Thu Dec 09 20:08:25 2010 +0530
@@ -39,7 +39,7 @@
 </table>
 
 <br/><br/><br/>
-<strong>To download CSV
+<strong>To download CSV Click 
 <a href="{% url scipycon_regstats_download params.scope %}">here</a></strong>
 
 {% endblock content %}