1👍
✅
You cannot do lookup in a dictionary in template using a variable, dict in template would always treat what’s after the dot as a string lookup like second_dict['owner_name']
. You need to write a template filter to do it. Check django doc on how to write custom filter.
Source:stackexchange.com