mirror of
https://github.com/pretix/pretix.git
synced 2026-08-05 09:57:49 +00:00
21 lines
593 B
Python
21 lines
593 B
Python
from .base import PassStyle, PredefinedFieldGroup, TextFieldGroup, WalletPlatform
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
class GooglePlatform(WalletPlatform):
|
|
identifier = "google"
|
|
name = _("Google")
|
|
|
|
|
|
class GoogleWalletStyle(PassStyle):
|
|
platform = GooglePlatform
|
|
|
|
|
|
class GoogleWalletEventTicket(PassStyle):
|
|
identifier = "event"
|
|
name = "Event Ticket"
|
|
platform = GooglePlatform
|
|
fieldgroups = [
|
|
PredefinedFieldGroup(identifier="seating", name=_("Seating")),
|
|
TextFieldGroup(identifier="qrcode", name=_("QR-Code"), labels=False),
|
|
]
|