mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Revert "Invoices: Support font choice and Arabic text"
This reverts commit d6f0615712.
This commit is contained in:
@@ -96,18 +96,6 @@ def primary_font_kwargs():
|
||||
}
|
||||
|
||||
|
||||
def invoice_font_kwargs():
|
||||
from pretix.presale.style import get_fonts
|
||||
|
||||
choices = [('Open Sans', 'Open Sans')]
|
||||
choices += sorted([
|
||||
(a, a) for a, v in get_fonts().items()
|
||||
], key=lambda a: a[0])
|
||||
return {
|
||||
'choices': choices,
|
||||
}
|
||||
|
||||
|
||||
def restricted_plugin_kwargs():
|
||||
from pretix.base.plugins import get_all_plugins
|
||||
|
||||
@@ -656,19 +644,6 @@ DEFAULTS = {
|
||||
help_text=_("Only respected by some invoice renderers."),
|
||||
)
|
||||
},
|
||||
'invoice_renderer_font': {
|
||||
'default': 'Open Sans',
|
||||
'type': str,
|
||||
'form_class': forms.ChoiceField,
|
||||
'serializer_class': serializers.ChoiceField,
|
||||
'serializer_kwargs': lambda: dict(**invoice_font_kwargs()),
|
||||
'form_kwargs': lambda: dict(
|
||||
label=_('Font'),
|
||||
help_text=_("Only respected by some invoice renderers."),
|
||||
required=True,
|
||||
**invoice_font_kwargs()
|
||||
),
|
||||
},
|
||||
'invoice_renderer': {
|
||||
'default': 'classic', # default for new events is 'modern1'
|
||||
'type': str,
|
||||
|
||||
Reference in New Issue
Block a user