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:
parent
dfa0945632
commit
ed960358a4
3 changed files with 6 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue