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:
Raphael Michel
2026-04-29 15:31:54 +02:00
committed by GitHub
parent 589f51454e
commit 24d26a9455
2 changed files with 15 additions and 2 deletions

View File

@@ -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),
},
}