Skip to content

Instantly share code, notes, and snippets.

@chris-martin
Created May 5, 2014 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chris-martin/7d64801204d83fd124f3 to your computer and use it in GitHub Desktop.
Save chris-martin/7d64801204d83fd124f3 to your computer and use it in GitHub Desktop.
from django import template
register = template.Library()
@register.filter
def joinby(value, arg):
return arg.join(map(unicode, value))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment