Пример #1
0
 def _process(self):
     filename = secure_filename('{}-Ticket.pdf'.format(self.event.title),
                                'ticket.pdf')
     return send_file(filename, generate_ticket(self.registration),
                      'application/pdf')
Пример #2
0
 def _process(self):
     filename = secure_filename('{}-Ticket.pdf'.format(self.event.title), 'ticket.pdf')
     return send_file(filename, generate_ticket(self.registration), 'application/pdf')