mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Fix #576 again
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import json
|
||||
import re
|
||||
from collections import OrderedDict
|
||||
|
||||
from django.template.loader import get_template
|
||||
@@ -46,7 +47,7 @@ class BankTransfer(BasePaymentProvider):
|
||||
ctx = {
|
||||
'event': self.event,
|
||||
'order': order,
|
||||
'details': self.settings.get('bank_details', as_type=LazyI18nString),
|
||||
'details': re.sub('^', ' ', self.settings.get('bank_details', as_type=LazyI18nString), flags=re.MULTILINE),
|
||||
}
|
||||
return template.render(ctx)
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
{% load i18n %}{% load l10n %}{% blocktrans with bank=details code=order.full_code total=order.total|localize currency=event.currency %}
|
||||
Please transfer the full amount to the following bank account.
|
||||
|
||||
```
|
||||
Reference: {{ code }}
|
||||
Amount: {{ total }} {{ currency }}
|
||||
Reference: {{ code }}
|
||||
Amount: {{ total }} {{ currency }}
|
||||
{{ bank }}
|
||||
```{% endblocktrans %}
|
||||
{% endblocktrans %}
|
||||
|
||||
Reference in New Issue
Block a user