Answers for "decode in django templates"

0

decode in django templates

register = template.Library()

@register.filter
def convert_byte_to_string(value):
    return value.decode("utf-8") if value else value
Posted by: Guest on August-10-2021

Code answers related to "decode in django templates"

Python Answers by Framework

Browse Popular Code Answers by Language