Commit 57d1230c by Kevin Falcone Committed by GitHub

Merge pull request #3117 from smaeda-ks/s.maeda/fix-jinja2-syntax

Fix jinja2 syntax for remove unnecessary white spaces or line breaks
parents 68be8efc 3a4a5d58
{% do cms_auth_config.update(EDXAPP_CMS_AUTH_EXTRA) %}
{% for key, value in cms_auth_config.iteritems() %}
{% if value == 'None' %}
{% for key, value in cms_auth_config.iteritems() -%}
{% if value == 'None' -%}
{% do cms_auth_config.update({key: None }) %}
{% endif %}
{% endfor %}
{%- endif %}
{%- endfor %}
{{ cms_auth_config | to_nice_json }}
{% do lms_auth_config.update(EDXAPP_LMS_AUTH_EXTRA) %}
{% for key, value in lms_auth_config.iteritems() %}
{% if value == 'None' %}
{% for key, value in lms_auth_config.iteritems() -%}
{% if value == 'None' -%}
{% do lms_auth_config.update({key: None }) %}
{% endif %}
{% endfor %}
{%- endif %}
{%- endfor %}
{{ lms_auth_config | to_nice_json }}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment