1👍
Turn it into a dictionary:
KIND_OPS = {key: index for index, key in enumerate(your_other_list)}
And then just do:
{{ kinds['ter'] }}
Source:stackexchange.com
1👍
Turn it into a dictionary:
KIND_OPS = {key: index for index, key in enumerate(your_other_list)}
And then just do:
{{ kinds['ter'] }}