mirror of
https://github.com/Kunsi/pretalx-plugin-broadcast-tools
synced 2025-04-29 02:40:59 +00:00
add TALK_URL and FEEDBACK_URL to the list of placeholders
This commit is contained in:
parent
97784373c0
commit
11afb88602
2 changed files with 18 additions and 2 deletions
|
@ -1,6 +1,16 @@
|
|||
from django.conf import settings
|
||||
|
||||
def placeholders(schedule, talk):
|
||||
return {
|
||||
"EVENT_SLUG": str(schedule.event.slug),
|
||||
"TALK_SLUG": talk.frab_slug,
|
||||
"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,
|
||||
),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue