1 2 3 4 5 6 | from django import template
register = template.Library()
@register.filter(name = 'decode')
def decode(value, arg):
return value if not value else value.decode(arg).encode('utf-8')
|
More like this
- Decode HTML Template Tag by megamark16 1 year, 2 months ago
- Character encoding fix by mrtron 5 years ago
- Google Analytics Template Tag by jarofgreen 3 years, 9 months ago
- Sort Table Headers by insin 5 years, 10 months ago
- django-tagging clouds template tag by skam 6 years, 1 month ago
Comments