Paypal: fix usage of getTitle() on Event object

This commit is contained in:
Pedro Ferreira 2016-12-14 15:54:59 +01:00
parent 632ae11d0d
commit e06b187bfa

View File

@ -64,7 +64,7 @@ class PaypalPaymentPlugin(PaymentPluginMixin, IndicoPlugin):
event = data['event']
registration = data['registration']
data['item_name'] = '{}: registration for {}'.format(remove_accents(registration.full_name),
remove_accents(event.getTitle()))
remove_accents(event.title))
data['return_url'] = url_for_plugin('payment_paypal.success', registration.locator.uuid, _external=True)
data['cancel_url'] = url_for_plugin('payment_paypal.cancel', registration.locator.uuid, _external=True)
data['notify_url'] = url_for_plugin('payment_paypal.notify', registration.locator.uuid, _external=True)