[printing/templates/blacklist] Why would I use __getitems__ when get is avaible
This commit is contained in:
parent
55985bd22a
commit
60d49b1f49
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{% if o.__getitem__('blacklist') %}
|
{% if o.get('blacklist', []) %}
|
||||||
{{"Blackliste : "|coul('gras')}}{{o.__getitem__('blacklist')[-limit:]|reverse|blacklist|join('\n ')}}
|
{{"Blackliste : "|coul('gras')}}{{o.get('blacklist', [])[-limit:]|reverse|blacklist|join('\n ')}}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% include 'object' %}
|
{% include 'object' %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue