From 9adeff300297f4ad7d3cd1c50fbc50b4cfe7b993 Mon Sep 17 00:00:00 2001 From: Richard Liu Date: Wed, 9 Oct 2024 02:37:46 -0700 Subject: [PATCH] chore: formatting --- pretix_email_template_plugin/apps.py | 5 ++++- pretix_email_template_plugin/signals.py | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/pretix_email_template_plugin/apps.py b/pretix_email_template_plugin/apps.py index c2847e3..e3c1c43 100644 --- a/pretix_email_template_plugin/apps.py +++ b/pretix_email_template_plugin/apps.py @@ -7,6 +7,7 @@ except ImportError: raise RuntimeError("Please use pretix 2.7 or above to run this plugin!") + class PluginApp(PluginConfig): default = True name = "pretix_email_template_plugin" @@ -15,7 +16,9 @@ class PluginApp(PluginConfig): class PretixPluginMeta: name = gettext_lazy("Attendee email placeholder") author = "0xPARC team" - description = gettext_lazy("Lets you use the {attendee_email} placeholder for email content that corresponds to an order's position.") + description = gettext_lazy( + "Lets you use the {attendee_email} placeholder for email content that corresponds to an order's position." + ) visible = True version = __version__ category = "FEATURE" diff --git a/pretix_email_template_plugin/signals.py b/pretix_email_template_plugin/signals.py index 89ebd12..cbed355 100644 --- a/pretix_email_template_plugin/signals.py +++ b/pretix_email_template_plugin/signals.py @@ -1,8 +1,8 @@ # Register your receivers here from django.dispatch import receiver - -from pretix.base.signals import register_text_placeholders from pretix.base.email import BaseMailTextPlaceholder +from pretix.base.signals import register_text_placeholders + class AttendeeEmailPlaceholder(BaseMailTextPlaceholder): def __init__(self): @@ -26,4 +26,4 @@ def render_sample(self, context): @receiver(register_text_placeholders, dispatch_uid="placeholder_custom") def register_placeholder_renderers(sender, **kwargs): - return AttendeeEmailPlaceholder() \ No newline at end of file + return AttendeeEmailPlaceholder()