Add fallback value for getitem template filter

This commit is contained in:
Raphael Michel
2022-02-04 16:58:47 +01:00
parent c65883b328
commit ea1322165b

View File

@@ -29,4 +29,4 @@ def getitem_filter(value, itemname):
if not value:
return ''
return value[itemname]
return value.get(itemname, '')