1
0
Fork 0
mirror of https://github.com/Kunsi/pretalx-plugin-broadcast-tools synced 2024-11-24 06:31:02 +00:00
pretalx-plugin-broadcast-tools/pretalx_broadcast_tools/utils/placeholders.py

18 lines
517 B
Python
Raw Normal View History

from django.conf import settings
2023-02-28 09:32:38 +00:00
def placeholders(schedule, talk):
return {
"CODE": talk.submission.code,
"EVENT_SLUG": str(schedule.event.slug),
"FEEDBACK_URL": "{}{}".format(
schedule.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,
talk.submission.urls.public,
),
}