1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2025-06-07 10:02:23 +00:00

add feature "export pdf page for each talk happening"

This commit is contained in:
Franzi 2022-10-22 18:07:40 +02:00
parent c4ccb146ef
commit 25fe8b804e
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 243 additions and 0 deletions

View file

@ -4,6 +4,7 @@ from django.utils.translation import gettext_noop
from django.utils.translation import ugettext_lazy as _
from i18nfield.strings import LazyI18nString
from pretalx.common.models.settings import hierarkey
from pretalx.common.signals import register_data_exporters
from pretalx.orga.signals import nav_event_settings
hierarkey.add_default(
@ -34,3 +35,9 @@ def navbar_info(sender, request, **kwargs):
and url.url_name == "orga",
}
]
@receiver(register_data_exporters, dispatch_uid="exporter_myexporter")
def register_data_exporter(sender, **kwargs):
from .exporter import PDFExporter
return PDFExporter