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 5 years, 1 month ago
- Split a string to a list and add to select options by xuqingkuang 3 years, 1 month ago
- Add rel=lightbox to all image-links by bartTC 4 years, 4 months ago
- Load File From URL Widget by bryanhelmig 9 months, 1 week ago
- several_random template filter by hawkeye 5 years ago
Comments