1
If providing the decoded value into the context is not an option, you will need to create a custom template tag.
from django import template
import binascii
register = template.Library()
@register.filter
def hex_decode(value):
return binascii.unhexlify(value)
Source:stackexchange.com