integrations: Make sure settings.EXTERNAL_URI_SCHEME renders.

This got broken at some point when we moved around the context
processing logic for integrations/webhooks. Thankfully, the
context value for external_uri_scheme was only used in a couple of
our less popular integration docs. It should render perfectly now.
This commit is contained in:
Eeshan Garg
2018-02-17 18:34:17 -03:30
committed by showell
parent e94efe5497
commit df4c645587

View File

@@ -31,6 +31,7 @@ def add_api_uri_context(context: Dict[str, Any], request: HttpRequest) -> None:
api_url_scheme_relative = display_host + "/api"
api_url = settings.EXTERNAL_URI_SCHEME + api_url_scheme_relative
context['external_uri_scheme'] = settings.EXTERNAL_URI_SCHEME
context['api_url'] = api_url
context['api_url_scheme_relative'] = api_url_scheme_relative
context["html_settings_links"] = html_settings_links