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

Comments

(Forgotten your password?)