1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2025-04-29 04:20:57 +00:00

placeholders: what we actually want is schedule.event here

This commit is contained in:
Franzi 2024-11-03 12:56:24 +01:00
parent dfa0945632
commit ed960358a4
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 6 additions and 6 deletions

View file

@ -1,19 +1,19 @@
from django.conf import settings
def placeholders(schedule, talk, supports_html_colour=False):
def placeholders(event, talk, supports_html_colour=False):
track_name = str(talk.submission.track.name) if talk.submission.track else ""
result = {
"CODE": talk.submission.code,
"EVENT_SLUG": str(schedule.event.slug),
"EVENT_SLUG": str(event.slug),
"FEEDBACK_URL": "{}{}".format(
schedule.event.custom_domain or settings.SITE_URL,
event.custom_domain or settings.SITE_URL,
talk.submission.urls.feedback,
),
"TALK_SLUG": talk.frab_slug,
"TALK_URL": "{}{}".format(
schedule.event.custom_domain or settings.SITE_URL,
event.custom_domain or settings.SITE_URL,
talk.submission.urls.public,
),
"TRACK_NAME": track_name,