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 7 years ago
  2. Random-image template tag by pbx 7 years ago
  3. Simple random file CAPTCHA by jeverling 2 years, 1 month ago
  4. Split a string to a list and add to select options by xuqingkuang 5 years ago
  5. Support for {% macro %} tags in templates, version 2 by mludvig 6 years, 8 months ago

Comments

(Forgotten your password?)