Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rrrliu committed Oct 9, 2024
1 parent 373da0f commit 9adeff3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion pretix_email_template_plugin/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions pretix_email_template_plugin/signals.py
Original file line number Diff line number Diff line change
@@ -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):
Expand All @@ -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()
return AttendeeEmailPlaceholder()

0 comments on commit 9adeff3

Please sign in to comment.