Skip to content
Snippets Groups Projects
Commit 1d7b584a authored by Dennis Ahrens's avatar Dennis Ahrens
Browse files

django settings rendering - call __repr__ using call_method filter

parent c082cbf2
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@
{{- loop(v.items()) -}}
{{- " "*4*loop.depth0 }}{{- "}" -}} {#- close curly brackets with proper ident -#}
{%- else -%}
{{- v.__repr__() -}} {#- if not a dict, just repr() it, works flawlessly -#}
{{- v | method_call('__repr__') -}} {#- if not a dict, just repr() it, works flawlessly -#}
{%- endif -%}
{%- if 0 != loop.depth0 %},{% else %}{{- "\n" -}}{% endif -%} {#- comma inside of top level, extra newline between toplevel -#}
{{- "\n" -}}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment