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:
parent
c4ccb146ef
commit
25fe8b804e
2 changed files with 243 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue