split filter

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

  1. Filter to resize a ImageField on demand by michelts 4 years, 9 months ago
  2. Split a string to a list and add to select options by xuqingkuang 2 years, 9 months ago
  3. Add rel=lightbox to all image-links by bartTC 4 years ago
  4. several_random template filter by hawkeye 4 years, 9 months ago
  5. Load File From URL Widget by bryanhelmig 5 months, 3 weeks ago

Comments

(Forgotten your password?)