djblets.privacy.templatetags.djblets_privacy¶
Privacy-related template tags.
- pii_safe_page_url(context)[source]¶
Inject the current page URL with personal information redacted.
This makes use of
djblets.privacy.pii.build_pii_safe_page_url()
to inject a version of the current page URL with usernames or e-mail addresses redacted.- Parameters:
context (
django.templates.RequestContext
) – The context for the page, containing arequest
variable.- Returns:
The safe URL to inject into the page.
- Return type:
Example
ga('set', 'location', '{% pii_safe_page_url %}');