From 52c33107e6b7d6bfc2c644f874735940508e619b Mon Sep 17 00:00:00 2001 From: Gabe Mulley Date: Wed, 15 Nov 2017 10:24:55 -0500 Subject: [PATCH] request can be retrieved via crum --- openedx/core/djangoapps/schedules/templatetags/ace.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openedx/core/djangoapps/schedules/templatetags/ace.py b/openedx/core/djangoapps/schedules/templatetags/ace.py index aff2ad45eb..88ab9a3a85 100644 --- a/openedx/core/djangoapps/schedules/templatetags/ace.py +++ b/openedx/core/djangoapps/schedules/templatetags/ace.py @@ -20,7 +20,8 @@ def with_link_tracking(context, url): All URLs will be augmented to include UTM parameters so that clicks can be tracked. Args: - context (dict): The template context. Must include a "request" and "message". + context (dict): The template context. Must include a "message". A request must be provided in this template + context or be retrievable using crum. url (str): The url to rewrite. Returns: @@ -75,7 +76,8 @@ def google_analytics_tracking_pixel(context): This tracking pixel will allow email open events to be tracked. Args: - context (dict): The template context. Must include a "request" and "message". + context (dict): The template context. Must include a "message". A request must be provided in this template + context or be retrievable using crum. Returns: str: A string containing an HTML image tag that implements the GA measurement protocol or an empty string if