mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Exclude all kinds of Umlauts from GiroCodes (Fix: #1314)
This commit is contained in:
9
src/pretix/base/templatetags/unidecode.py
Normal file
9
src/pretix/base/templatetags/unidecode.py
Normal file
@@ -0,0 +1,9 @@
|
||||
import text_unidecode
|
||||
from django import template
|
||||
|
||||
register = template.Library()
|
||||
|
||||
|
||||
@register.filter
|
||||
def unidecode(value):
|
||||
return text_unidecode.unidecode(str(value))
|
||||
@@ -4,6 +4,7 @@
|
||||
{% load dotdecimal %}
|
||||
{% load ibanformat %}
|
||||
{% load money %}
|
||||
{% load unidecode %}
|
||||
|
||||
<p>{% blocktrans trimmed %}
|
||||
Please transfer the full amount to the following bank account:
|
||||
@@ -43,7 +44,7 @@
|
||||
2
|
||||
SCT
|
||||
{{ settings.bank_details_sepa_bic }}
|
||||
{{ settings.bank_details_sepa_name }}
|
||||
{{ settings.bank_details_sepa_name|unidecode }}
|
||||
{{ settings.bank_details_sepa_iban }}
|
||||
{{ event.currency }}{{ amount|dotdecimal }}
|
||||
|
||||
|
||||
@@ -64,4 +64,5 @@ phonenumberslite==8.11.*
|
||||
python-bidi==0.4.* # Support for arabic in reportlab
|
||||
arabic-reshaper==2.0.15 # Support for Aabic in reportlab
|
||||
packaging
|
||||
tlds>=2020041600
|
||||
tlds>=2020041600
|
||||
text-unidecode==1.*
|
||||
@@ -151,7 +151,8 @@ setup(
|
||||
'python-bidi==0.4.*', # Support for Arabic in reportlab
|
||||
'arabic-reshaper==2.0.15', # Support for Arabic in reportlab
|
||||
'packaging',
|
||||
'tlds>=2020041600'
|
||||
'tlds>=2020041600',
|
||||
'text-unidecode==1.*'
|
||||
],
|
||||
extras_require={
|
||||
'dev': [
|
||||
|
||||
Reference in New Issue
Block a user