]> git.parisson.com Git - teleforma.git/commitdiff
fix coma in pdf filename
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 30 May 2013 17:21:50 +0000 (19:21 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 30 May 2013 17:21:50 +0000 (19:21 +0200)
teleforma/views/pro.py

index 4765cb2df56c2e96d723a3c7dc0fa9f33bb95971..aedd4e58524aab709b95dc7446681e8a220a5a02 100644 (file)
@@ -630,7 +630,7 @@ class TestimonialDownloadView(TestimonialView):
         super(TestimonialDownloadView, self).get_pdf_filename()
         seminar = self.get_object()
         prefix = unicode(_('Testimonial'))
-        filename = '_'.join([prefix, seminar.title,
+        filename = '_'.join([prefix, seminar.title.replace(',', ' '),
                             self.request.user.first_name, self.request.user.last_name,])
         filename += '.pdf'
         return filename.encode('utf-8')