mirror of
https://github.com/pretix/pretix.git
synced 2026-05-17 17:14:04 +00:00
Badges: Add export layout for 4x3" on letter (Z#23232464) (#6128)
* Badges: Add export layout for 4x3" on letter (Z#23232464) * Consistent naming
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
from django.utils.text import format_lazy
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from reportlab.lib import pagesizes
|
||||
from reportlab.lib.units import mm
|
||||
from reportlab.lib.units import inch, mm
|
||||
|
||||
|
||||
def _simple_template(w, h):
|
||||
@@ -261,4 +261,9 @@ TEMPLATES = {
|
||||
"pagesize": (88.9 * mm, 33.87 * mm),
|
||||
"layout": _simple_template(88.9 * mm, 33.87 * mm),
|
||||
},
|
||||
"4inx3in": {
|
||||
"label": format_lazy(_("{width} x {height} inch label"), width=4, height=3),
|
||||
"pagesize": (4 * inch, 3 * inch),
|
||||
"layout": _simple_template(4 * inch, 3 * inch),
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user