dekoduj szablonami django

register = template.Library()

@register.filter
def convert_byte_to_string(value):
    return value.decode("utf-8") if value else value

UG Legend