1 2 3 4 5 6 | from django import template
register = template.Library()
@register.filter
def split(str,splitter):
return str.split(splitter)
|
More like this
- Filter to resize a ImageField on demand by michelts 4 years, 9 months ago
- Split a string to a list and add to select options by xuqingkuang 2 years, 9 months ago
- Add rel=lightbox to all image-links by bartTC 4 years ago
- several_random template filter by hawkeye 4 years, 9 months ago
- Load File From URL Widget by bryanhelmig 5 months, 3 weeks ago
Comments